소스 검색

Change row_offsets[] to uint8_t

Saves 10 bytes of flash, and 4 bytes of SRAM
Guðni Már Gilbert 2 년 전
부모
커밋
800f44509d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 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)
 	if (row >= LCD_HEIGHT)
 		row = LCD_HEIGHT - 1;    // we count rows starting w/0
 		row = LCD_HEIGHT - 1;    // we count rows starting w/0
 	lcd_currline = row;  
 	lcd_currline = row;