From: tmk Date: Fri, 5 Nov 2010 17:03:52 +0000 (+0900) Subject: FIX: LED debug X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=74b3e591fcf296f0b363ab8289b2531a7cd44b64;p=max%2Ftmk_keyboard.git FIX: LED debug --- diff --git a/key_process.c b/key_process.c index dc75c2c6..f6e16b8e 100644 --- a/key_process.c +++ b/key_process.c @@ -96,6 +96,15 @@ void proc_matrix(void) { } } } + + if (modified) { +#ifdef DEBUG_LED + // LED flash for debug + DEBUG_LED_CONFIG; + DEBUG_LED_OFF; +#endif + } + layer_switching(fn_bits); // when 4 left modifier keys down @@ -224,10 +233,5 @@ void proc_matrix(void) { //Rollover } usb_keyboard_send(); -#ifdef DEBUG_LED - // LED flash for debug - DEBUG_LED_CONFIG; - DEBUG_LED_OFF; -#endif } } diff --git a/tmk.c b/tmk.c index 53da9aa8..2ad31e97 100644 --- a/tmk.c +++ b/tmk.c @@ -49,6 +49,9 @@ bool debug_mouse = false; int main(void) { + DEBUG_LED_CONFIG; + DEBUG_LED_OFF; + // set for 16 MHz clock CPU_PRESCALE(0);