From 37ad1968b5b6aeee6f0c49434a8d9a1fa3af6e83 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 19 Jan 2025 09:59:39 +0100 Subject: [PATCH 1/2] formating --- src/core/system.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/system.h b/src/core/system.h index 746803a35..2e5eca7da 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -29,9 +29,6 @@ #ifndef EMSESP_STANDALONE #include -#if CONFIG_IDF_TARGET_ESP32 -// #include -#endif #include #include #endif From 92d816b990a8c3857ee0e8bc32d04ab0cf6f2e30 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 19 Jan 2025 10:00:03 +0100 Subject: [PATCH 2/2] include CPU temp in heartbeat MWTT topic for ESP32 --- src/core/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mqtt.cpp b/src/core/mqtt.cpp index 04b21244a..84f26a450 100644 --- a/src/core/mqtt.cpp +++ b/src/core/mqtt.cpp @@ -580,7 +580,7 @@ void Mqtt::ha_status() { publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx writes", "txwrites", DeviceValueUOM::NONE); publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx fails", "txfails", DeviceValueUOM::NONE); -#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 +#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32 publish_system_ha_sensor_config(DeviceValueType::INT8, "CPU temperature", "temperature", DeviceValueUOM::DEGREES); #endif