Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ script:
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS
- opt_enable BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR
- opt_enable AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
- opt_enable_adv ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS
- opt_enable_adv ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS POWER_LOSS_RECOVERY
- opt_enable_adv FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING
- opt_set GRID_MAX_POINTS_X 16
- opt_set_adv FANMUX0_PIN 53
Expand Down
10 changes: 10 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
8 changes: 8 additions & 0 deletions Marlin/src/Marlin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
#include "feature/pause.h"
#endif

#if ENABLED(POWER_LOSS_RECOVERY)
#include "feature/power_loss_recovery.h"
#endif

#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#include "feature/runout.h"
#endif
Expand Down Expand Up @@ -876,6 +880,10 @@ void setup() {
pe_magnet_init();
#endif

#if ENABLED(POWER_LOSS_RECOVERY)
do_print_job_recovery();
#endif

#if ENABLED(USE_WATCHDOG) // Reinit watchdog after HAL_get_reset_source call
watchdog_init();
#endif
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/default/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Anet/A6/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Anet/A8/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Cartesio/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Felix/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@
// Add an option in the menu to run all auto#.g files
//#define MENU_ADDAUTOSTART

/**
* Continue after Power-Loss (Creality3D)
*
* Store the current state to the SD Card at the start of each layer
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
Loading