Skip to content
Snippets Groups Projects
Commit d2c90d04 authored by chris007's avatar chris007
Browse files

Use vTaskDelay for non-blocking wait

parent f5036c60
No related branches found
No related tags found
1 merge request!147Integration of BME680 Sensor (#33)
......@@ -7,6 +7,7 @@
#include "card10.h"
#include "epicardium.h"
#include "modules.h"
#include "modules/log.h"
#define HEATR_TEMP 320
......@@ -97,7 +98,7 @@ int epic_bme680_read_sensors(struct bme680_sensor_data *data)
return -convert_error(result);
}
bme.delay_ms(profile_dur); /* Wait for the measurement to complete */
vTaskDelay(pdMS_TO_TICKS(profile_dur)); /* Wait for the measurement to complete */
result = bme680_get_sensor_data(&raw_data, &bme);
if (result != BME680_OK) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment