dell: Use the more portable g_usleep()

This commit is contained in:
Richard Hughes 2019-11-22 08:54:13 +00:00
parent 4debb3dcd2
commit 18b0a739e2

View File

@ -104,7 +104,7 @@ fu_dell_dock_hid_set_report (FuDevice *self,
g_debug ("attempt %d/%d: set control transfer failed: %s", g_debug ("attempt %d/%d: set control transfer failed: %s",
i, HID_MAX_RETRIES, i, HID_MAX_RETRIES,
error_local->message); error_local->message);
sleep (1); g_usleep (G_USEC_PER_SEC);
} }
} }
if (actual_len != 192) { if (actual_len != 192) {