From 1b216d08eece7c72fb4d9c08e0fa698c2ae35b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lino?= Date: Thu, 13 Aug 2015 00:39:03 +0100 Subject: [PATCH] fixed xSetGenericValue max value issue and unit issue. --- brew.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/brew.ino b/brew.ino index 0220407..34e0e2a 100644 --- a/brew.ino +++ b/brew.ino @@ -1328,8 +1328,6 @@ int xSetGenericValue(int init, int min, int max, char *valueName, char *unit) { lcd.print( " 0 " ); lcd.print( unit ); - rotaryEncoderMaxPosition = TEMPERATURE_SETTING_MAX_VALUE; - while(true) { // Check if pushbutton is pressed if ( digitalRead(ROTARY_ENCODER_SW_PIN) ) { @@ -1361,7 +1359,8 @@ int xSetGenericValue(int init, int min, int max, char *valueName, char *unit) { } } lcd.print( rotaryEncoderVirtualPosition ); - lcd.print( " *C" ); + lcd.print( " " ); + lcd.print( unit ); lcd.println( " " ); } } -- 2.24.1