summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-13 21:48:08 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-13 21:48:08 -0500
commitea79b0a8190fa0d923816141391337027fb4bc33 (patch)
tree23a269dcaf70f7d6bd4a58af8b20e9a01fd21c87
parent8204f087fb816414efa07710de78f37b4864c06f (diff)
reenabled gpio testing
-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++;
}