DAQ: Call update after initial calibration

Otherwise the current measurement will show wrong readings in ThingSet
messages read before control thread started.
This commit is contained in:
Martin Jäger
2021-03-27 18:26:55 +01:00
parent b2707067ac
commit 94dc0d9a3f
+1
View File
@@ -381,6 +381,7 @@ void daq_setup()
k_sleep(K_MSEC(500)); // wait for ADC to collect some measurement values
daq_update();
calibrate_current_sensors();
daq_update();
}
#endif // UNIT_TEST