avoid corruptet first readout
This commit is contained in:
@@ -18,6 +18,8 @@ static const char *TAG = "thermo_sensor";
|
||||
bmp280_t dev_bmp_280;
|
||||
|
||||
void main_loop(void *pvParameters) {
|
||||
// Wait 1s, to avoid corrupted first sensor readout
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
while (1) {
|
||||
ygg_bmp280_read_sensor(&dev_bmp_280);
|
||||
ygg_send_sensor_readouts(SENSOR_NAME,
|
||||
|
||||
Reference in New Issue
Block a user