From 94dc0d9a3f702eac9576860f91f24ffb7625d257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Sat, 27 Mar 2021 18:26:51 +0100 Subject: [PATCH] DAQ: Call update after initial calibration Otherwise the current measurement will show wrong readings in ThingSet messages read before control thread started. --- src/daq_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daq_driver.c b/src/daq_driver.c index 81de96e..1283fbd 100644 --- a/src/daq_driver.c +++ b/src/daq_driver.c @@ -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