]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/hhkb/hhkb_avr.h
core: Clean up code of Locking key support
[max/tmk_keyboard.git] / keyboard / hhkb / hhkb_avr.h
index 4e7e07036449c2774ca9c46a48a894b32a697b52..5cb1d0d7d8365d594450b0ddcde0704c650767ee 100644 (file)
@@ -70,7 +70,11 @@ static inline void KEY_INIT(void)
 #ifdef HHKB_JP
     /* row extention for HHKB JP */
     DDRC  |= (1<<6|1<<7);
-    PORTC &= ~(1<<6|1<<7);
+    PORTC |= (1<<6|1<<7);
+#else
+    /* input with pull up to save power */
+    DDRC  &= ~(1<<6|1<<7);
+    PORTC |=  (1<<6|1<<7);
 #endif
     KEY_UNABLE();
     KEY_PREV_OFF();