summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
Diffstat (limited to 'skey.c')
-rw-r--r--skey.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/skey.c b/skey.c
index 71b712d..b3dedd5 100644
--- a/skey.c
+++ b/skey.c
@@ -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;