Sensor read will now performed directly after startup.
This commit is contained in:
parent
6d2d5e2aa0
commit
1f2b4ec38c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue