]> git.tdb.fi Git - model-railway-devices.git/blobdiff - common/lcd.c
Drop the pretense of C89, put declarations where they make sense
[model-railway-devices.git] / common / lcd.c
index f4e0387aeccdb5f148c0bbc7b89be943b9d29f17..a7d523febed21df5506d1a608886020170e78ebb 100644 (file)
@@ -60,8 +60,7 @@ static void lcd_clock(void)
 static void lcd_set_data(uint8_t d)
 {
 #ifdef LCD_SHIFTREG
-       uint8_t i;
-       for(i=0; i<8; ++i)
+       for(uint8_t i=0; i<8; ++i)
        {
                PORTB = (PORTB&~0x04)|((d&1)<<2);
                PORTB |= 0x08;