From 29a65a6f9d7e8e567172e303571b22d3e83606d1 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Sun, 20 Sep 2026 18:24:09 +0200 Subject: [PATCH] avoid corruptet first readout --- thermo_sensor/main/thermo_sensor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thermo_sensor/main/thermo_sensor.c b/thermo_sensor/main/thermo_sensor.c index 0986269..e4a3984 100644 --- a/thermo_sensor/main/thermo_sensor.c +++ b/thermo_sensor/main/thermo_sensor.c @@ -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,