summaryrefslogtreecommitdiff
path: root/software/rhmixxx/keypad.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-06-02 01:47:54 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-06-02 01:47:54 (GMT)
commit78068e9588cdbd7d99c4334685d5b6664444d8bd (patch)
tree4ad43126f527be0c2f52efc43dd454eac1e8e77f /software/rhmixxx/keypad.c
parent23b29a81a9df8768ca88a8015f02fbb34f5328cb (diff)
added support gpio inputs (no lp until now)
Diffstat (limited to 'software/rhmixxx/keypad.c')
-rw-r--r--software/rhmixxx/keypad.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/software/rhmixxx/keypad.c b/software/rhmixxx/keypad.c
index 6bdb01f..f27c711 100644
--- a/software/rhmixxx/keypad.c
+++ b/software/rhmixxx/keypad.c
@@ -160,12 +160,7 @@ static inline void keypad_key_lowpass(uint8_t key_idx, uint8_t current_state)
if(current_state != keypad_state[key_idx].last_sent) {
keypad_state[key_idx].last_sent = current_state;
-
- if(current_state) {
- eventqueue_push(key_idx, 0);
- } else {
- eventqueue_push(key_idx, 1);
- }
+ eventqueue_push(key_idx, ((current_state) ? 0 : 1));
}
}
}