Procházet zdrojové kódy

Change row_offsets[] to uint8_t

Saves 10 bytes of flash, and 4 bytes of SRAM
Guðni Már Gilbert před 3 roky
rodič
revize
800f44509d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Firmware/lcd.cpp

+ 1 - 1
Firmware/lcd.cpp

@@ -331,7 +331,7 @@ void lcd_no_autoscroll(void)
 
 void lcd_set_cursor(uint8_t col, uint8_t row)
 {
-	int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
+	uint8_t row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
 	if (row >= LCD_HEIGHT)
 		row = LCD_HEIGHT - 1;    // we count rows starting w/0
 	lcd_currline = row;