Change row_offsets[] to uint8_t

Saves 10 bytes of flash, and 4 bytes of SRAM
This commit is contained in:
Guðni Már Gilbert 2021-08-19 21:20:30 +00:00
parent 58213814cf
commit 800f44509d

View file

@ -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;