diff options
Diffstat (limited to 'tmk_core/common/action_tapping.c')
| -rw-r--r-- | tmk_core/common/action_tapping.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c index 826c23309..6b6fa1dfe 100644 --- a/tmk_core/common/action_tapping.c +++ b/tmk_core/common/action_tapping.c | |||
| @@ -6,11 +6,11 @@ | |||
| 6 | #include "keycode.h" | 6 | #include "keycode.h" |
| 7 | #include "timer.h" | 7 | #include "timer.h" |
| 8 | 8 | ||
| 9 | #ifdef DEBUG_ACTION | 9 | //#ifdef DEBUG_ACTION |
| 10 | #include "debug.h" | 10 | #include "debug.h" |
| 11 | #else | 11 | //#else |
| 12 | #include "nodebug.h" | 12 | //#include "nodebug.h" |
| 13 | #endif | 13 | //#endif |
| 14 | 14 | ||
| 15 | #ifndef NO_ACTION_TAPPING | 15 | #ifndef NO_ACTION_TAPPING |
| 16 | 16 | ||
| @@ -139,7 +139,7 @@ bool process_tapping(keyrecord_t *keyp) | |||
| 139 | if (event.pressed) { | 139 | if (event.pressed) { |
| 140 | tapping_key.tap.interrupted = true; | 140 | tapping_key.tap.interrupted = true; |
| 141 | } | 141 | } |
| 142 | // enqueue | 142 | // enqueue |
| 143 | return false; | 143 | return false; |
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| @@ -324,6 +324,7 @@ bool waiting_buffer_typed(keyevent_t event) | |||
| 324 | return false; | 324 | return false; |
| 325 | } | 325 | } |
| 326 | 326 | ||
| 327 | __attribute__((unused)) | ||
| 327 | bool waiting_buffer_has_anykey_pressed(void) | 328 | bool waiting_buffer_has_anykey_pressed(void) |
| 328 | { | 329 | { |
| 329 | for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) { | 330 | for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) { |
