Fixup
We're always setting the cursor position when rendering now Saves 8 bytes of flash
This commit is contained in:
parent
c518bfdb73
commit
f2157c6f1d
|
|
@ -293,15 +293,12 @@ void TryLoadUnloadProgressbarInit() {
|
||||||
// Clear the status line
|
// Clear the status line
|
||||||
lcd_set_cursor(0, 3);
|
lcd_set_cursor(0, 3);
|
||||||
lcd_space(LCD_WIDTH);
|
lcd_space(LCD_WIDTH);
|
||||||
|
|
||||||
// Reset cursor position
|
|
||||||
lcd_set_cursor(0, 3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TryLoadUnloadProgressbar(uint8_t col, bool sensorState) {
|
void TryLoadUnloadProgressbar(uint8_t col, bool sensorState) {
|
||||||
// Set the cursor position each time in case some other
|
// Set the cursor position each time in case some other
|
||||||
// part of the firmware changes the cursor position
|
// part of the firmware changes the cursor position
|
||||||
lcd_putc_at(col, 3, sensorState ? '_' : LCD_STR_SOLID_BLOCK[0]);
|
lcd_putc_at(col, 3, sensorState ? '-' : LCD_STR_SOLID_BLOCK[0]);
|
||||||
lcd_reset_status_message_timeout();
|
lcd_reset_status_message_timeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue