etekcity: sleep after updating the profile

The mouse really does not liked to be polled too much for its features,
so we need to wait till it is ready again.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2015-08-15 11:46:26 -04:00
parent c60e31c2d9
commit 33aecfc14f

View File

@@ -140,6 +140,8 @@ etekcity_read_profile(struct ratbag_profile *profile, unsigned int index)
rc = ratbag_hidraw_raw_request(ratbag, ETEKCITY_REPORT_ID_KEY_MAPPING,
buf, sizeof(buf), HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
msleep(100);
if (rc < 50)
return;