forked from drath/libratbag
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user