Sensor read will now performed directly after startup.

This commit is contained in:
Kai Lauterbach 2022-09-18 09:52:02 +02:00
parent 6d2d5e2aa0
commit 1f2b4ec38c

View file

@ -416,7 +416,7 @@ void _fsm_loop()
/* -------------------------------------------------------------------------------- */
case FSM_STATE_5:
//debug("read sensor data check");
if ((update_sensor_cnt + (UPDATE_SENSOR_INTERVAL_S * 1000)) <= millis())
if ((update_sensor_cnt + (UPDATE_SENSOR_INTERVAL_S * 1000)) <= millis() or validData == false)
{
debug("read sensor data " + String(sensor_cnt));