Explorar el Código

Do not overwrite saved values if TM error occurs while paused

Yuri D'Elia hace 2 años
padre
commit
b672be90b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;