summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
Diffstat (limited to 'skey.c')
-rw-r--r--skey.c4
1 files changed, 3 insertions, 1 deletions
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++;
}