From f2157c6f1d63d4210f5194bdc38a19c1a2c115ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sun, 12 Mar 2023 10:56:06 +0000 Subject: [PATCH] Fixup We're always setting the cursor position when rendering now Saves 8 bytes of flash --- Firmware/mmu2_reporting.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Firmware/mmu2_reporting.cpp b/Firmware/mmu2_reporting.cpp index 54d7e4fba..46d2c97aa 100644 --- a/Firmware/mmu2_reporting.cpp +++ b/Firmware/mmu2_reporting.cpp @@ -293,15 +293,12 @@ void TryLoadUnloadProgressbarInit() { // Clear the status line lcd_set_cursor(0, 3); lcd_space(LCD_WIDTH); - - // Reset cursor position - lcd_set_cursor(0, 3); } void TryLoadUnloadProgressbar(uint8_t col, bool sensorState) { // Set the cursor position each time in case some other // 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(); }