diff options
author | tmk <nobody@nowhere> | 2010-11-07 20:47:24 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-11-07 20:47:24 +0900 |
commit | 8fc6c265d18fada6f790c546d5f963ce3f59d109 (patch) | |
tree | ab51f1f3937b667ac2be2fefefab2b52f2af86b0 | |
parent | 2ca3ab18a2120a4320912547031a48b0dd1f1bad (diff) | |
parent | 74b3e591fcf296f0b363ab8289b2531a7cd44b64 (diff) | |
download | qmk_firmware-8fc6c265d18fada6f790c546d5f963ce3f59d109.tar.gz qmk_firmware-8fc6c265d18fada6f790c546d5f963ce3f59d109.zip |
Merge branch 'led'
-rw-r--r-- | key_process.c | 14 | ||||
-rw-r--r-- | tmk.c | 3 |
2 files changed, 12 insertions, 5 deletions
diff --git a/key_process.c b/key_process.c index dc75c2c611..f6e16b8edd 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 } } @@ -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); |