Review changes

This commit is contained in:
Jason2866 2022-08-19 11:27:15 +02:00 committed by GitHub
parent f64bddea04
commit 14c1c5dfd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -657,13 +657,12 @@ float CpuTemperature(void) {
*/
#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
static float t = NAN;
if (isnan(t)) {
t = (float)temperatureRead(); // In Celsius
}
return t;
#endif
return NAN;
#endif
}
/*