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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user