Browse Source

Do not overwrite saved values if TM error occurs while paused

Yuri D'Elia 2 years ago
parent
commit
b672be90b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/temperature.cpp

+ 1 - 1
Firmware/temperature.cpp

@@ -498,7 +498,7 @@ volatile static union
 void set_temp_error(TempErrorSource source, uint8_t index, TempErrorType type)
 {
     // save the original target temperatures for recovery before disabling heaters
-    if(!temp_error_state.error) {
+    if(!temp_error_state.error && !saved_printing) {
         saved_bed_temperature = target_temperature_bed;
         saved_extruder_temperature = target_temperature[index];
         saved_fan_speed = fanSpeed;