daemon: Fix timespec usage

This commit is contained in:
Tasos Sahanidis
2024-05-15 17:00:13 +03:00
parent 98cd4b2b20
commit 63733a5f9e
+1 -1
View File
@@ -139,7 +139,7 @@ void setmodeindex_legacy(usbdevice* kb, int index){
}
}
static const struct timespec legacy_delay_ts = {.tv_nsec = 30000000000};
static const struct timespec legacy_delay_ts = {.tv_sec = 30};
void legacy_delay(usbdevice* kb, delay_type_t type){
// Fixed 30ms delay should be fine
clock_nanosleep(CLOCK_MONOTONIC, 0, &legacy_delay_ts, NULL);