From 6f76c5a5b0c802d426f92fa947e67310b79f97c1 Mon Sep 17 00:00:00 2001 From: nedko Date: Mon, 7 Nov 2022 00:33:27 +0200 Subject: [PATCH] Removed constant printing of cleared mm --- code/main.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/code/main.c b/code/main.c index e4358b6..ff247e5 100644 --- a/code/main.c +++ b/code/main.c @@ -873,6 +873,24 @@ void print_mm() x += (CHAR_SIZE + 1) * 2; } + // Print/clear 'mm' + if (old_highlight != count_highlight) + { + if (0xFF == count_highlight) + { + symbol = 0xFF; + } + else + { + symbol = CHAR_m; + } + + print_symbol(symbol, x, y, 0); + x += (CHAR_SIZE + 1) * 2; + print_symbol(symbol, x, y, 0); + } + +#if 0 // Print 'mm' (only after clear) if ((0xFF == old_highlight) && (0xFF != count_highlight)) { @@ -888,6 +906,7 @@ void print_mm() x += (CHAR_SIZE + 1) * 2; print_symbol(0xFF, x, y, 0); } +#endif old_highlight = count_highlight; } @@ -997,7 +1016,7 @@ void print_option(uint8_t option) void print_battery_icon() { -#if 1 +#if 0 uint32_t idx = (uint32_t) eeprom_idx; if (eeprom_idx >= 0)