diff --git a/Mk2_3phase_RFdatalog_temp/main.cpp b/Mk2_3phase_RFdatalog_temp/main.cpp index fe40130c..8fd0a405 100644 --- a/Mk2_3phase_RFdatalog_temp/main.cpp +++ b/Mk2_3phase_RFdatalog_temp/main.cpp @@ -425,7 +425,7 @@ void loop() tx_data.temperature_x100[idx] = tmp; } while (idx); - + temperatureSensing.requestTemperatures(); // for use next time around } diff --git a/Mk2_3phase_RFdatalog_temp/utils.h b/Mk2_3phase_RFdatalog_temp/utils.h index 644d273c..a28d9608 100644 --- a/Mk2_3phase_RFdatalog_temp/utils.h +++ b/Mk2_3phase_RFdatalog_temp/utils.h @@ -233,6 +233,12 @@ inline void printForSerialJson() { for (uint8_t idx = 0; idx < temperatureSensing.get_size(); ++idx) { + if ((OUTOFRANGE_TEMPERATURE == tx_data.temperature_x100[idx]) + || (DEVICE_DISCONNECTED_RAW == tx_data.temperature_x100[idx])) + { + continue; + } + Serial.print(F(", T")); Serial.print(idx + 1); Serial.print(F(":")); @@ -280,6 +286,12 @@ inline void printForSerialText() { for (uint8_t idx = 0; idx < temperatureSensing.get_size(); ++idx) { + if ((OUTOFRANGE_TEMPERATURE == tx_data.temperature_x100[idx]) + || (DEVICE_DISCONNECTED_RAW == tx_data.temperature_x100[idx])) + { + continue; + } + Serial.print(F(", T")); Serial.print(idx + 1); Serial.print(F(":"));