From 26300287f91244bf9f2d9bd2ffc69bf10929d2a0 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Thu, 8 Sep 2022 11:36:58 +0200 Subject: [PATCH] Wifi name set to const --- firmware/firmware.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index 1478ccb..2595ce4 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -159,7 +159,7 @@ void wifiConnectionCheck() #ifdef USE_WIFIMANAGER // Establish WiFi connection - String wifiName = "oko-weather-" + DEVICE_NAME; + const String wifiName = "oko-weather-" + DEVICE_NAME; wifiManager.setMinimumSignalQuality(WIFI_MINIMUM_SIGNAL_QUALITY); // the time in seconds to wait for the known wifi connection @@ -356,7 +356,6 @@ void _loop() delay(100); #ifdef INFLUXDB_FEATURE - for (uint8_t i = 0; i < 5 and validData == false; i++) { if (currentSensorData[i] != 0)