Prolonged the waiting time for sensors initialisation
This commit is contained in:
parent
be3024747f
commit
f2ebe11354
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user