Add indicate when in value chaning mode

Display '>' in front of the value when we are changing the value. This
make it clear that we are changing the value or changing the menu item.
pull/13/head
Howard Su 2020-08-20 11:26:41 +08:00
rodzic 8fb2dd723f
commit 2045434e04
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -2827,6 +2827,7 @@ template<typename T> void paramAction(uint8_t action, T& value, const __FlashStr
lcd.print(menuid); lcd.print(' ');
lcd.print(label); lcd_blanks(); lcd_blanks();
lcd.setCursor(0, 1); // value on next line
if (menumode == 2) lcd.print('>');
} else { // UPDATE (not in menu)
lcd.setCursor(0, 1); lcd.print(label); lcd.print(F(": "));
}