diff options
-rw-r--r-- | skey.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,9 @@ int skey_update_thread (void *data) { const struct sched_param PARAM = { .sched_priority = 45}; sched_setscheduler(current, SCHED_FIFO, &PARAM); printk(KERN_INFO "skey: started update thread\n"); - + if (!USE_GPIO) { + printk(KERN_ALERT "skey: currently in test mode with gpio use disabled\n"); + } while (1) { if (USE_GPIO) { //reads the keyboard @@ -56,8 +58,6 @@ int skey_update_thread (void *data) { gpio_set_value(column_pins[column_index], 0); column_index++; } - } else { - printk(KERN_ALERT "skey: currently in test mode with gpio use disabled\n"); } //sleep 2000us= 2ms = 0.002 seconds usleep_range(2000, 2000); |