From ea79b0a8190fa0d923816141391337027fb4bc33 Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Wed, 13 Dec 2017 21:48:08 -0500 Subject: reenabled gpio testing --- skey.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skey.c b/skey.c index b820e01..7d1e055 100644 --- a/skey.c +++ b/skey.c @@ -11,7 +11,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 0 +#define USE_GPIO 1 /* * Unsigned ints containing the BCM pin numbers for the pins used, __initdata * helps with the loading and unloading of data in memory @@ -74,6 +74,8 @@ int skey_update_thread (void *data) { while (row_index < 3) { if (gpio_get_value(row_pins[row_index])) { printk(KERN_INFO "skey: key pressed at column %d, row %d\n", column_index, row_index); + } else { + printk(KERN_INFO "skey: key not pressed at column %d, row %d\n", column_index, row_index); } row_index++; } -- cgit v1.1