diff --git a/fw/Core/Src/main.c b/fw/Core/Src/main.c index bf1d424..954bb66 100644 --- a/fw/Core/Src/main.c +++ b/fw/Core/Src/main.c @@ -269,6 +269,13 @@ int main(void) /* Infinite loop */ /* USER CODE BEGIN WHILE */ + + /* Wait 1000ms for sensors initialization */ + /* SHT4x Init Time: max 1 ms (datasheet pg. 8) */ + /* SCD4x Init Time: max 1000 ms (datasheet pg. 6) */ + /* SPS30 Init Time: max 30000 ms (datasheet pg. 2) */ + LL_mDelay(5000); + if (scd4x_start_periodic_measurement() == SCD4X_OK) { scd4x_is_connected = 1; @@ -288,10 +295,6 @@ int main(void) GasIndexAlgorithm_init(&voc_params, GasIndexAlgorithm_ALGORITHM_TYPE_VOC); } - /* Wait 1000ms for sensors initialization */ - /* SHT4x Init Time: max 1 ms (datasheet pg. 8) */ - /* SCD4x Init Time: max 1000 ms (datasheet pg. 6) */ - /* SPS30 Init Time: max 30000 ms (datasheet pg. 2) */ LL_mDelay(5000); static uint32_t new_baud;