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 */
|
/* Infinite loop */
|
||||||
/* USER CODE BEGIN WHILE */
|
/* 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)
|
if (scd4x_start_periodic_measurement() == SCD4X_OK)
|
||||||
{
|
{
|
||||||
scd4x_is_connected = 1;
|
scd4x_is_connected = 1;
|
||||||
@ -288,10 +295,6 @@ int main(void)
|
|||||||
GasIndexAlgorithm_init(&voc_params, GasIndexAlgorithm_ALGORITHM_TYPE_VOC);
|
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);
|
LL_mDelay(5000);
|
||||||
|
|
||||||
static uint32_t new_baud;
|
static uint32_t new_baud;
|
||||||
|
Loading…
Reference in New Issue
Block a user