From 5af988ac3786dd7c32f9808caf9f651a8cff47f5 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 26 Dec 2012 23:14:07 +0900 Subject: [PATCH] Fix bug of FAILSAFE key clear. http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478.html#p90022 --- common/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/keyboard.c b/common/keyboard.c index cd1ceb42..2dee51d4 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -619,6 +619,10 @@ void keyboard_task(void) Kdebug("FAIL SAFE: clear all keys(default layer).\n"); clear_keyboard(); current_layer = default_layer; + fn_state_bits = 0; + delayed_fn = (keyrecord_t){}; + waiting_key = (keyrecord_t){}; + NEXT(IDLE); } }