]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
FIX: LED debug
authortmk <nobody@nowhere>
Fri, 5 Nov 2010 17:03:52 +0000 (02:03 +0900)
committertmk <nobody@nowhere>
Fri, 5 Nov 2010 17:03:52 +0000 (02:03 +0900)
key_process.c
tmk.c

index dc75c2c6111b82d90188b45621ec7d0bbf74e17e..f6e16b8edd9ab9ad4fbd916057a4fc45e9aa8c4f 100644 (file)
@@ -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 53da9aa8604ae37d7b433b2bc23754b4b4cf78b4..2ad31e97d490ed82016a22780a39225f9a2878b7 100644 (file)
--- 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);