We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b59840 + 606f416 commit a26f28aCopy full SHA for a26f28a
1 file changed
Software/Software.ino
@@ -370,7 +370,14 @@ void check_interconnect_available() {
370
371
void update_calculated_values() {
372
/* Update CPU temperature*/
373
- datalayer.system.info.CPU_temperature = temperatureRead();
+ union {
374
+ float temp;
375
+ uint32_t hex;
376
+ } temp = {.temp = temperatureRead()};
377
+ if (temp.hex != 0x42555555) {
378
+ // Ignoring erroneous temperature value that ESP32 sometimes returns
379
+ datalayer.system.info.CPU_temperature = temp.temp;
380
+ }
381
382
/* Calculate allowed charge/discharge currents*/
383
if (datalayer.battery.status.voltage_dV > 10) {
0 commit comments