From: Mathias Andersson Date: Wed, 1 May 2013 09:30:01 +0000 (+0200) Subject: Code style fixes for Phantom matrix. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=3f48b13f81f276dc8d0bd96607b70d13f9b5e883;p=max%2Ftmk_keyboard.git Code style fixes for Phantom matrix. --- diff --git a/keyboard/phantom/matrix.c b/keyboard/phantom/matrix.c index e9606ef5..386feea4 100644 --- a/keyboard/phantom/matrix.c +++ b/keyboard/phantom/matrix.c @@ -42,22 +42,22 @@ static void select_col(uint8_t col); reaches the value in the output compare register, and are turned on when it reaches TOP (=256). */ static -void setup_leds(void) { - TCCR1A |= // Timer control register 1A - (1< PORTB6, LED_B -> PORTB7 - DDRB &= 0x3F; - PORTB &= 0x3F; +void setup_leds(void) +{ + TCCR1A |= // Timer control register 1A + (1< PORTB6, LED_B -> PORTB7 + DDRB &= 0x3F; + PORTB &= 0x3F; } - inline uint8_t matrix_rows(void) { @@ -82,7 +82,7 @@ void matrix_init(void) setup_leds(); // initialize matrix state: all keys off - for (uint8_t i=0; i < MATRIX_ROWS; i++) { + for (uint8_t i = 0; i < MATRIX_ROWS; i++) { matrix[i] = 0; matrix_debouncing[i] = 0; }