From 5af988ac3786dd7c32f9808caf9f651a8cff47f5 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 26 Dec 2012 23:14:07 +0900 Subject: 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(+) (limited to 'common/keyboard.c') diff --git a/common/keyboard.c b/common/keyboard.c index cd1ceb420c..2dee51d4b8 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); } } -- cgit v1.2.1