From 5517bb1f495b406b37c482baa4be22c573c6876e Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Sun, 6 Oct 2024 22:21:27 +0200 Subject: [PATCH] 2024-10-0601 --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5652cb1..092163f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -122,10 +122,6 @@ void setup() { if (F_MCP9808 == true){ valTemp = getTemperature_MCP9808(); } - if (!F_BME280 == true){ - Serial.println("Topic BME280 löschen!"); - Clear_BME280(hostname.c_str()); - } setup_wifi(); // ca. 4,5 s deviceId = ESP.getChipId(); sprintf(sID, "%010ld", deviceId); @@ -144,6 +140,10 @@ void setup() { Serial.println("Topic BMP280 löschen!"); Clear_BME280(hostname.c_str()); } + if (!F_BME280 == true){ + Serial.println("Topic BME280 löschen!"); + Clear_BME280(hostname.c_str()); + } //---------- }