state-handler: lcd update only with non 0 values
This commit is contained in:
parent
641cdefe58
commit
759bc5034f
@ -237,7 +237,9 @@ StateHandler::handleTickValue (int value)
|
||||
}
|
||||
if (value > TIMER_PRESSURE_TIMEOUT)
|
||||
{
|
||||
if(!(saved_curr_value[current_mode] == 0 && saved_set_value[current_mode] == 0)) {
|
||||
SetState (&StateHandler::stateGetPressure);
|
||||
}
|
||||
sensor_timer += value;
|
||||
error_timer += value;
|
||||
state_timer->resetCounter ();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user