summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-27 22:16:34 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-27 22:16:34 -0500
commitba55cbff3a7abab2031db1436a26caf4c4d7388d (patch)
tree0b04639619a977486ab03c06352719b8cf0bd69c /skey.c
parent449f9f9cd89585f50aab67b3e1889d5f837116ba (diff)
undid 88f06d, this was already done in the production code but i forgot to update it for git.
Diffstat (limited to 'skey.c')
-rw-r--r--skey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/skey.c b/skey.c
index c092938..917bf6c 100644
--- a/skey.c
+++ b/skey.c
@@ -83,7 +83,7 @@ int skey_update_thread (void *data) {
int column_index = 0;
while (row_index < 3) {
//sets the column pin high for reading
- gpio_set_value_cansleep(row_pins[row_index], 0);
+ gpio_set_value_cansleep(row_pins[row_index], 1);
//gives it some buffer time
usleep_range(10,10);
//reads with all the rows
@@ -97,7 +97,7 @@ int skey_update_thread (void *data) {
column_index++;
}
//sets the row pin low
- gpio_set_value_cansleep(row_pins[row_index], 1);
+ gpio_set_value_cansleep(row_pins[row_index], 0);
usleep_range(10,10);
row_index++;
}