mirror of https://github.com/arendst/Tasmota.git
Review changes
This commit is contained in:
parent
f64bddea04
commit
14c1c5dfd4
|
@ -657,13 +657,12 @@ float CpuTemperature(void) {
|
||||||
*/
|
*/
|
||||||
#else
|
#else
|
||||||
// Currently (20210801) repeated calls to temperatureRead() on ESP32C3 and ESP32S2 result in IDF error messages
|
// Currently (20210801) repeated calls to temperatureRead() on ESP32C3 and ESP32S2 result in IDF error messages
|
||||||
static float t = NAN;
|
static float t = NAN;
|
||||||
if (isnan(t)) {
|
if (isnan(t)) {
|
||||||
t = (float)temperatureRead(); // In Celsius
|
t = (float)temperatureRead(); // In Celsius
|
||||||
}
|
}
|
||||||
return t;
|
return t;
|
||||||
#endif
|
#endif
|
||||||
return NAN;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue