From: tmk Date: Wed, 26 Dec 2012 14:14:07 +0000 (+0900) Subject: Fix bug of FAILSAFE key clear. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=5af988ac3786dd7c32f9808caf9f651a8cff47f5;p=max%2Ftmk_keyboard.git Fix bug of FAILSAFE key clear. http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478.html#p90022 --- 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); } }