From 085c77effb2b70b0d7f847f32e9974cd8f398d70 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 24 Aug 2018 20:38:07 +0200 Subject: [PATCH] Fix when value edited, other values appeard as +1.000 instead of [off]. --- Firmware/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/menu.cpp b/Firmware/menu.cpp index a315f240..c73b2843 100644 --- a/Firmware/menu.cpp +++ b/Firmware/menu.cpp @@ -318,7 +318,7 @@ void menu_draw_P(char chr, const char* str, int16_t val) strcpy_P(spaces, menu_20x_space); spaces[12 - text_len] = 0; float factor = 1.0 + static_cast(val) / 1000.0; - if (val == _md->minEditValue) + if (val <= _md->minEditValue) { lcd_printf_P(menu_fmt_float13off, chr, str, spaces); lcd_puts_P(_i(" [off]"));