state-handler: lcd update only with non 0 values

This commit is contained in:
Evgenii Meshcheriakov 2022-10-27 20:33:15 +03:00
parent 641cdefe58
commit 759bc5034f

View File

@ -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 ();