diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index d5e3df2fb177..cd0a1bfceebb 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -2745,9 +2745,10 @@ void Temperature::disable_all_heaters() { // Set thermocouple above max temperature (TMAX) max_tc_temp = THERMO_SEL(TEMP_SENSOR_0_MAX_TC_TMAX, TEMP_SENSOR_1_MAX_TC_TMAX) << (MAX_TC_DISCARD_BITS + 1); } - } else { - max_tc_errors[hindex] = 0; - } // if(there was an error) + } + else { + max_tc_errors[hindex] = 0; // No error bit, reset error count + } max_tc_temp >>= MAX_TC_DISCARD_BITS;