diff options
-rw-r--r-- | skey.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -9,7 +9,7 @@ * defines whether to access the gpios so other parts of the kernel module can * be tested on systems w/o the prerequisite GPIOs */ -#define USE_GPIO 1 +#define USE_GPIO 0 /* * Unsigned ints containing the BCM pin numbers for the pins used, __initdata * helps with the loading and unloading of data in memory @@ -38,7 +38,14 @@ int skey_update_thread (void *data) { if (!USE_GPIO) { printk(KERN_ALERT "skey: currently in test mode with gpio use disabled\n"); } + //a counter for testing prints + int i = 0; while (1) { + i++; + i = i % 500; + if (!i) { + printk(KERN_INFO "skey: update thread printed to kernel log every 1s\n"); + } if (USE_GPIO) { //reads the keyboard int row_index = 0; |