From 5da6ab8f702d7b9b0c7c2f765975dccc6f64f3c1 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 18 Sep 2022 12:58:48 +0200 Subject: [PATCH] Temp error messages fixed --- tasmota/tasmota_support/support_esp.ino | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tasmota/tasmota_support/support_esp.ino b/tasmota/tasmota_support/support_esp.ino index 34a0cd1e7..b6a5f8dc9 100644 --- a/tasmota/tasmota_support/support_esp.ino +++ b/tasmota/tasmota_support/support_esp.ino @@ -672,22 +672,7 @@ void *special_malloc32(uint32_t size) { } float CpuTemperature(void) { -#ifdef CONFIG_IDF_TARGET_ESP32 return (float)temperatureRead(); // In Celsius -/* - // These jumps are not stable either. Sometimes it jumps to 77.3 - float t = (float)temperatureRead(); // In Celsius - if (t > 81) { t = t - 27.2; } // Fix temp jump observed on some ESP32 like DualR3 - return t; -*/ -#else - // Currently (20210801) repeated calls to temperatureRead() on ESP32C3 and ESP32S2 result in IDF error messages - static float t = NAN; - if (isnan(t)) { - t = (float)temperatureRead(); // In Celsius - } - return t; -#endif } /*