Commit 1b216d08 authored by João Lino's avatar João Lino

fixed xSetGenericValue max value issue and unit issue.

parent 3e5d29c2
...@@ -1328,8 +1328,6 @@ int xSetGenericValue(int init, int min, int max, char *valueName, char *unit) { ...@@ -1328,8 +1328,6 @@ int xSetGenericValue(int init, int min, int max, char *valueName, char *unit) {
lcd.print( " 0 " ); lcd.print( " 0 " );
lcd.print( unit ); lcd.print( unit );
rotaryEncoderMaxPosition = TEMPERATURE_SETTING_MAX_VALUE;
while(true) { while(true) {
// Check if pushbutton is pressed // Check if pushbutton is pressed
if ( digitalRead(ROTARY_ENCODER_SW_PIN) ) { if ( digitalRead(ROTARY_ENCODER_SW_PIN) ) {
...@@ -1361,7 +1359,8 @@ int xSetGenericValue(int init, int min, int max, char *valueName, char *unit) { ...@@ -1361,7 +1359,8 @@ int xSetGenericValue(int init, int min, int max, char *valueName, char *unit) {
} }
} }
lcd.print( rotaryEncoderVirtualPosition ); lcd.print( rotaryEncoderVirtualPosition );
lcd.print( " *C" ); lcd.print( " " );
lcd.print( unit );
lcd.println( " " ); lcd.println( " " );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment