From 026733e75f4c07449a7e78dcf83d6dba40a87ea9 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Wed, 25 May 2022 19:45:47 +0200 Subject: [PATCH] Improve comments --- Firmware/temperature.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 40b10f2d..e93ffadb 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -2107,13 +2107,15 @@ static void updateTemperatures() { TempMgrGuard temp_mgr_guard; setCurrentTemperaturesFromIsr(); - if(!temp_error_state.v) + if(!temp_error_state.v) { + // refuse to update target temperatures in any error condition! setIsrTargetTemperatures(); + } temp_meas_ready = false; } /* Convert raw values into actual temperatures for temp_mgr. The raw values are created in the ADC - interrupt context, while this function runs from the temp_mgr isr which is preemptible as + interrupt context, while this function runs from temp_mgr_isr which *is* preemptible as analog2temp is relatively slow */ static void setIsrTemperaturesFromRawValues() {