summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-23 12:40:50 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-23 12:40:50 -0500
commit0ba35aea7958934a24205b3db93ede394e797594 (patch)
tree27c5f75cf07404c7c7b73e155256cb4049446142 /skey.c
parenta6d6d0460bd36423ab06529646747364567ed1c6 (diff)
fixed typo
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 48fcc03..f211398 100644
--- a/skey.c
+++ b/skey.c
@@ -87,7 +87,7 @@ int skey_update_thread (void *data) {
//sets the column pin high for reading
gpio_set_value_cansleep(row_pins[row_index], 1);
//gives it some buffer time
- usleep(10);
+ usleep_range(10,10);
//reads with all the rows
column_index = 0;
while (column_index < 10) {
@@ -100,7 +100,7 @@ int skey_update_thread (void *data) {
}
//sets the row pin low
gpio_set_value_cansleep(row_pins[row_index], 0);
- usleep(10);
+ usleep_range(10,10);
row_index++;
}
}