Browse Source

Re-enable bed temperature automatically for transitory errors

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

+ 5 - 0
Firmware/temperature.cpp

@@ -1738,6 +1738,11 @@ void handle_temp_error()
             temp_error_state.v = 0;
             WRITE(BEEPER, LOW);
             menu_unset_block(MENU_BLOCK_THERMAL_ERROR);
+
+            // hotend error was transitory and disappeared, re-enable bed
+            if (!target_temperature_bed)
+                target_temperature_bed = saved_bed_temperature;
+
             SERIAL_ECHOLNPGM("TM: error cleared");
         }
         break;