mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 01:10:20 +01:00
Fix: Remove temperature readings for ESP32-S2 modules
For some reasons this leads to WDT resets on this kind of module. This is just a workaround until another solution is found.
This commit is contained in:
@@ -19,6 +19,12 @@ CpuTemperatureClass CpuTemperature;
|
||||
|
||||
float CpuTemperatureClass::read()
|
||||
{
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32S2
|
||||
// Disabling temperature reading for ESP32-S2 models as it might lead to WDT resets.
|
||||
// See: https://github.com/espressif/esp-idf/issues/8088
|
||||
return NAN;
|
||||
#endif
|
||||
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
|
||||
float temperature = NAN;
|
||||
|
||||
Reference in New Issue
Block a user