We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b80dcb commit 606f416Copy full SHA for 606f416
1 file changed
Software/Software.ino
@@ -361,7 +361,14 @@ void check_interconnect_available() {
361
362
void update_calculated_values() {
363
/* Update CPU temperature*/
364
- datalayer.system.info.CPU_temperature = temperatureRead();
+ union {
365
+ float temp;
366
+ uint32_t hex;
367
+ } temp = {.temp = temperatureRead()};
368
+ if (temp.hex != 0x42555555) {
369
+ // Ignoring erroneous temperature value that ESP32 sometimes returns
370
+ datalayer.system.info.CPU_temperature = temp.temp;
371
+ }
372
373
/* Calculate allowed charge/discharge currents*/
374
if (datalayer.battery.status.voltage_dV > 10) {
0 commit comments