]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
fc980c: Fix initial state of LED
authortmk <hasu@tmk-kbd.com>
Tue, 1 Oct 2019 05:16:44 +0000 (14:16 +0900)
committertmk <hasu@tmk-kbd.com>
Tue, 1 Oct 2019 05:16:44 +0000 (14:16 +0900)
keyboard/fc980c/fc980c.c

index 59b1d5261fa8878dcbc9011094f789bb9aecbe26..6b8fa39b163cd727efb5975a265e5dc996414949 100644 (file)
@@ -51,7 +51,7 @@ void matrix_init(void)
 
     // LEDs on NumLock, CapsLock and ScrollLock(PB4, PB5, PB6)
     DDRB  |= (1<<4) | (1<<5) | (1<<6);
-    PORTB |= (1<<4) | (1<<5) | (1<<6);
+    PORTB &= ~((1<<4) | (1<<5) | (1<<6));
 
     // initialize matrix state: all keys off
     for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;