driver-hidpp20: do not divert button when remapping

Temporary diversion has priority over remapping and should not be set at the same time.
This commit is contained in:
Clément Vuchener
2017-03-23 14:21:42 +01:00
committed by Benjamin Tissoires
parent dab5d2c0b7
commit a9f4049841

View File

@@ -300,7 +300,7 @@ hidpp20drv_write_button_1b04(struct ratbag_button *button,
if (!mapping)
return -EINVAL;
control->reporting.divert = 1;
control->reporting.divert = 0;
control->reporting.remapped = mapping;
control->reporting.updated = 1;