From 1f2b4ec38c34c6a3d285d2a9ca524584d0c4a4d8 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Sun, 18 Sep 2022 09:52:02 +0200 Subject: [PATCH] Sensor read will now performed directly after startup. --- firmware/firmware.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index 10fac5c..a5e4c9d 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -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));