diff options
Diffstat (limited to 'skey.c')
-rw-r--r-- | skey.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -336,7 +336,11 @@ int skey_update_thread (void *data) { } //sleep 500us= .5ms = 0.0005 seconds // 1 / 0.0005 = 2000 hz fastest, but it's really 1/0.00052 - usleep_range(1000000,1000000); + if (DEBUGMODE) { + usleep_range(1000000,1000000); // slower when debugging + } else { + usleep_range(500,500); + } //for when the thread has to stop if (kthread_should_stop()) { break; |