From: tmk Date: Tue, 1 Oct 2019 05:16:44 +0000 (+0900) Subject: fc980c: Fix initial state of LED X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=47775af20671e347e7e5545f63b42a51f0a4df04;p=max%2Ftmk_keyboard.git fc980c: Fix initial state of LED --- diff --git a/keyboard/fc980c/fc980c.c b/keyboard/fc980c/fc980c.c index 59b1d526..6b8fa39b 100644 --- a/keyboard/fc980c/fc980c.c +++ b/keyboard/fc980c/fc980c.c @@ -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;