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