From e9e7162bcdce52a7f429337a54bf97b73bef7436 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 6 Oct 2025 08:59:16 +0200 Subject: [PATCH] typos, update --- platformio.ini | 2 +- src/core/emsdevice.cpp | 5 ++++- src/devices/connect.cpp | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index c1ee00bf0..8303e8c9a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -108,7 +108,7 @@ build_type = release board_build.filesystem = littlefs lib_deps = bblanchon/ArduinoJson @ 7.4.2 - ESP32Async/AsyncTCP @ 3.4.8 + ESP32Async/AsyncTCP @ 3.4.9 ESP32Async/ESPAsyncWebServer @ 3.8.1 https://github.com/emsesp/EMS-ESP-Modules.git @ 1.0.8 diff --git a/src/core/emsdevice.cpp b/src/core/emsdevice.cpp index 08faa425b..fa42a91cb 100644 --- a/src/core/emsdevice.cpp +++ b/src/core/emsdevice.cpp @@ -258,6 +258,9 @@ uint8_t EMSdevice::device_name_2_device_type(const char * topic) { if (!strcmp(lowtopic, F_(pool))) { return DeviceType::POOL; } + if (!strcmp(lowtopic, F_(connect))) { + return DeviceType::CONNECT; + } // non EMS if (!strcmp(lowtopic, F_(custom))) { @@ -1901,7 +1904,7 @@ void EMSdevice::mqtt_ha_entity_config_create() { Mqtt::publish_ha_climate_config(dv.tag, true, false, dv.min, dv.max); } - #ifndef EMSESP_STANDALONE +#ifndef EMSESP_STANDALONE // always create minimum one config if (count && (heap_caps_get_free_size(MALLOC_CAP_8BIT) < 65 * 1024)) { // checks free Heap+PSRAM break; diff --git a/src/devices/connect.cpp b/src/devices/connect.cpp index c72aa6954..0579d0f70 100644 --- a/src/devices/connect.cpp +++ b/src/devices/connect.cpp @@ -124,7 +124,7 @@ void Connect::process_roomThermostatName(std::shared_ptr telegra rc->name_[(i - 2) / 2] = telegram->message_data[i]; } } - rc->name_[50] = ' \0'; // make sure name is terminated + rc->name_[50] = '\0'; // make sure name is terminated } // settings 0-mode, 1-tempautotemp, 3 - manualtemp, 6,7 - ?