]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix bug of FAILSAFE key clear.
authortmk <nobody@nowhere>
Wed, 26 Dec 2012 14:14:07 +0000 (23:14 +0900)
committertmk <nobody@nowhere>
Wed, 26 Dec 2012 14:14:07 +0000 (23:14 +0900)
http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478.html#p90022

common/keyboard.c

index cd1ceb420cfac3b9089f1627b6a5720735852376..2dee51d4b817d0c282cf4102a50555cc1cdc94a1 100644 (file)
@@ -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);
         }
     }