Browse Source

Add'l PLR options, AVR strstr_P compat (#13880)

Tanguy Pruvot 5 years ago
parent
commit
11adcf1ce3
84 changed files with 345 additions and 169 deletions
  1. 4
    2
      Marlin/Configuration_adv.h
  2. 7
    0
      Marlin/src/HAL/shared/Marduino.h
  3. 9
    1
      Marlin/src/feature/power_loss_recovery.cpp
  4. 2
    4
      Marlin/src/feature/power_loss_recovery.h
  5. 5
    5
      buildroot/share/tests/DUE-tests
  6. 3
    3
      buildroot/share/tests/LPC1768-tests
  7. 3
    3
      buildroot/share/tests/LPC1769-tests
  8. 2
    1
      buildroot/share/tests/STM32F1-tests
  9. 1
    1
      buildroot/share/tests/esp32-tests
  10. 1
    1
      buildroot/share/tests/megaatmega2560-tests
  11. 4
    2
      config/default/Configuration_adv.h
  12. 4
    2
      config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  13. 4
    2
      config/examples/AlephObjects/TAZ4/Configuration_adv.h
  14. 4
    2
      config/examples/AliExpress/UM2pExt/Configuration_adv.h
  15. 4
    2
      config/examples/Anet/A2/Configuration_adv.h
  16. 4
    2
      config/examples/Anet/A2plus/Configuration_adv.h
  17. 4
    2
      config/examples/Anet/A6/Configuration_adv.h
  18. 4
    2
      config/examples/Anet/A8/Configuration_adv.h
  19. 4
    2
      config/examples/AnyCubic/i3/Configuration_adv.h
  20. 4
    2
      config/examples/ArmEd/Configuration_adv.h
  21. 4
    2
      config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  22. 4
    2
      config/examples/BIBO/TouchX/default/Configuration_adv.h
  23. 4
    2
      config/examples/BQ/Hephestos/Configuration_adv.h
  24. 4
    2
      config/examples/BQ/Hephestos_2/Configuration_adv.h
  25. 4
    2
      config/examples/BQ/WITBOX/Configuration_adv.h
  26. 4
    2
      config/examples/Cartesio/Configuration_adv.h
  27. 4
    2
      config/examples/Creality/CR-10/Configuration_adv.h
  28. 4
    2
      config/examples/Creality/CR-10S/Configuration_adv.h
  29. 4
    2
      config/examples/Creality/CR-10_5S/Configuration_adv.h
  30. 4
    2
      config/examples/Creality/CR-10mini/Configuration_adv.h
  31. 4
    2
      config/examples/Creality/CR-8/Configuration_adv.h
  32. 4
    2
      config/examples/Creality/Ender-2/Configuration_adv.h
  33. 4
    2
      config/examples/Creality/Ender-3/Configuration_adv.h
  34. 4
    2
      config/examples/Creality/Ender-4/Configuration_adv.h
  35. 4
    2
      config/examples/Einstart-S/Configuration_adv.h
  36. 4
    2
      config/examples/Felix/Configuration_adv.h
  37. 4
    2
      config/examples/FlashForge/CreatorPro/Configuration_adv.h
  38. 4
    2
      config/examples/FolgerTech/i3-2020/Configuration_adv.h
  39. 4
    2
      config/examples/Formbot/Raptor/Configuration_adv.h
  40. 4
    2
      config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  41. 4
    2
      config/examples/Formbot/T_Rex_3/Configuration_adv.h
  42. 8
    2
      config/examples/Geeetech/A10M/Configuration_adv.h
  43. 8
    2
      config/examples/Geeetech/A20M/Configuration_adv.h
  44. 4
    2
      config/examples/Geeetech/MeCreator2/Configuration_adv.h
  45. 4
    2
      config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  46. 4
    2
      config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  47. 4
    2
      config/examples/Infitary/i3-M508/Configuration_adv.h
  48. 4
    2
      config/examples/JGAurora/A5/Configuration_adv.h
  49. 4
    2
      config/examples/MakerParts/Configuration_adv.h
  50. 4
    2
      config/examples/Malyan/M150/Configuration_adv.h
  51. 4
    2
      config/examples/Malyan/M200/Configuration_adv.h
  52. 4
    2
      config/examples/Micromake/C1/enhanced/Configuration_adv.h
  53. 4
    2
      config/examples/Mks/Robin/Configuration_adv.h
  54. 4
    2
      config/examples/Mks/Sbase/Configuration_adv.h
  55. 4
    2
      config/examples/RapideLite/RL200/Configuration_adv.h
  56. 4
    2
      config/examples/RigidBot/Configuration_adv.h
  57. 4
    2
      config/examples/SCARA/Configuration_adv.h
  58. 4
    2
      config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h
  59. 4
    2
      config/examples/Sanguinololu/Configuration_adv.h
  60. 4
    2
      config/examples/TheBorg/Configuration_adv.h
  61. 4
    2
      config/examples/TinyBoy2/Configuration_adv.h
  62. 4
    2
      config/examples/Tronxy/X3A/Configuration_adv.h
  63. 4
    2
      config/examples/Tronxy/X5S-2E/Configuration_adv.h
  64. 4
    2
      config/examples/UltiMachine/Archim1/Configuration_adv.h
  65. 4
    2
      config/examples/UltiMachine/Archim2/Configuration_adv.h
  66. 4
    2
      config/examples/VORONDesign/Configuration_adv.h
  67. 4
    2
      config/examples/Velleman/K8200/Configuration_adv.h
  68. 4
    2
      config/examples/Velleman/K8400/Configuration_adv.h
  69. 8
    2
      config/examples/WASP/PowerWASP/Configuration_adv.h
  70. 4
    2
      config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  71. 4
    2
      config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  72. 4
    2
      config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  73. 4
    2
      config/examples/delta/FLSUN/kossel/Configuration_adv.h
  74. 4
    2
      config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  75. 4
    2
      config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h
  76. 4
    2
      config/examples/delta/MKS/SBASE/Configuration_adv.h
  77. 4
    2
      config/examples/delta/Tevo Little Monster/Configuration_adv.h
  78. 4
    2
      config/examples/delta/generic/Configuration_adv.h
  79. 4
    2
      config/examples/delta/kossel_mini/Configuration_adv.h
  80. 4
    2
      config/examples/delta/kossel_xl/Configuration_adv.h
  81. 4
    2
      config/examples/gCreate/gMax1.5+/Configuration_adv.h
  82. 4
    2
      config/examples/makibox/Configuration_adv.h
  83. 4
    2
      config/examples/tvrrug/Round2/Configuration_adv.h
  84. 4
    2
      config/examples/wt150/Configuration_adv.h

+ 4
- 2
Marlin/Configuration_adv.h View File

851
    */
851
    */
852
   //#define POWER_LOSS_RECOVERY
852
   //#define POWER_LOSS_RECOVERY
853
   #if ENABLED(POWER_LOSS_RECOVERY)
853
   #if ENABLED(POWER_LOSS_RECOVERY)
854
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
855
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
854
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss (optional)
855
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
856
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
857
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
856
 
858
 
857
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 7
- 0
Marlin/src/HAL/shared/Marduino.h View File

48
 #ifndef CBI
48
 #ifndef CBI
49
   #define CBI(A,B) (A &= ~(1 << (B)))
49
   #define CBI(A,B) (A &= ~(1 << (B)))
50
 #endif
50
 #endif
51
+
52
+#ifndef __AVR__
53
+  #ifndef strchr_P // Some platforms define a macro (DUE, teensy35)
54
+    inline const char* strchr_P(const char *s, int c) { return strchr(s,c); }
55
+    //#define strchr_P(s,c) strchr(s,c)
56
+  #endif
57
+#endif

+ 9
- 1
Marlin/src/feature/power_loss_recovery.cpp View File

55
 
55
 
56
 PrintJobRecovery recovery;
56
 PrintJobRecovery recovery;
57
 
57
 
58
+#ifndef POWER_LOSS_PURGE_LEN
59
+  #define POWER_LOSS_PURGE_LEN 0
60
+#endif
61
+#ifndef POWER_LOSS_RETRACT_LEN
62
+  #define POWER_LOSS_RETRACT_LEN 0
63
+#endif
64
+
58
 /**
65
 /**
59
  * Clear the recovery info
66
  * Clear the recovery info
60
  */
67
  */
340
     //gcode.process_subcommands_now(cmd);
347
     //gcode.process_subcommands_now(cmd);
341
     gcode.process_subcommands_now_P(PSTR("G1 E" STRINGIFY(POWER_LOSS_PURGE_LEN) " F200"));
348
     gcode.process_subcommands_now_P(PSTR("G1 E" STRINGIFY(POWER_LOSS_PURGE_LEN) " F200"));
342
   #endif
349
   #endif
350
+
343
   #if POWER_LOSS_RETRACT_LEN
351
   #if POWER_LOSS_RETRACT_LEN
344
-    sprintf_P(cmd, PSTR("G1 E%d F3000"), POWER_LOSS_PURGE_LEN - POWER_LOSS_RETRACT_LEN);
352
+    sprintf_P(cmd, PSTR("G1 E%d F3000"), POWER_LOSS_PURGE_LEN - (POWER_LOSS_RETRACT_LEN));
345
     gcode.process_subcommands_now(cmd);
353
     gcode.process_subcommands_now(cmd);
346
   #endif
354
   #endif
347
 
355
 

+ 2
- 4
Marlin/src/feature/power_loss_recovery.h View File

32
   #include "../feature/mixing.h"
32
   #include "../feature/mixing.h"
33
 #endif
33
 #endif
34
 
34
 
35
-#define SAVE_INFO_INTERVAL_MS 0
36
-//#define SAVE_EACH_CMD_MODE
37
 //#define DEBUG_POWER_LOSS_RECOVERY
35
 //#define DEBUG_POWER_LOSS_RECOVERY
38
-#define POWER_LOSS_PURGE_LEN 20
39
-#define POWER_LOSS_RETRACT_LEN 10
36
+//#define SAVE_EACH_CMD_MODE
37
+//#define SAVE_INFO_INTERVAL_MS 0
40
 
38
 
41
 typedef struct {
39
 typedef struct {
42
   uint8_t valid_head;
40
   uint8_t valid_head;

+ 5
- 5
buildroot/share/tests/DUE-tests View File

8
 
8
 
9
 restore_configs
9
 restore_configs
10
 opt_set MOTHERBOARD BOARD_RAMPS4DUE_EFB
10
 opt_set MOTHERBOARD BOARD_RAMPS4DUE_EFB
11
-opt_enable S_CURVE_ACCELERATION EEPROM_SETTINGS
11
+opt_enable S_CURVE_ACCELERATION EEPROM_SETTINGS GCODE_MACROS
12
 opt_set E0_AUTO_FAN_PIN 8
12
 opt_set E0_AUTO_FAN_PIN 8
13
 opt_set EXTRUDER_AUTO_FAN_SPEED 100
13
 opt_set EXTRUDER_AUTO_FAN_SPEED 100
14
-exec_test $1 $2 "RAMPS4DUE_EFB S_CURVE_ACCELERATION EEPROM_SETTINGS"
14
+exec_test $1 $2 "RAMPS4DUE_EFB with S_CURVE_ACCELERATION, EEPROM_SETTINGS, GCODE_MACROS"
15
 
15
 
16
 restore_configs
16
 restore_configs
17
 opt_set MOTHERBOARD BOARD_RADDS
17
 opt_set MOTHERBOARD BOARD_RADDS
23
 pins_set RAMPS Y_MAX_PIN -1
23
 pins_set RAMPS Y_MAX_PIN -1
24
 opt_add Z2_MAX_PIN 2
24
 opt_add Z2_MAX_PIN 2
25
 opt_add Z3_MAX_PIN 3
25
 opt_add Z3_MAX_PIN 3
26
-exec_test $1 $2 "Test RADDS with Z_TRIPLE_STEPPER_DRIVERS and Z_STEPPER_AUTO_ALIGN"
26
+exec_test $1 $2 "RADDS with Z_TRIPLE_STEPPER_DRIVERS and Z_STEPPER_AUTO_ALIGN"
27
 
27
 
28
 #
28
 #
29
 # Test SWITCHING_EXTRUDER
29
 # Test SWITCHING_EXTRUDER
32
 opt_set MOTHERBOARD BOARD_RAMPS4DUE_EEF
32
 opt_set MOTHERBOARD BOARD_RAMPS4DUE_EEF
33
 opt_set EXTRUDERS 2
33
 opt_set EXTRUDERS 2
34
 opt_set NUM_SERVOS 1
34
 opt_set NUM_SERVOS 1
35
-opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER BEEP_ON_FEEDRATE_CHANGE
36
-exec_test $1 $2 "Test RAMPS4DUE with SWITCHING_EXTRUDER"
35
+opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER BEEP_ON_FEEDRATE_CHANGE POWER_LOSS_RECOVERY
36
+exec_test $1 $2 "RAMPS4DUE_EEF with SWITCHING_EXTRUDER, POWER_LOSS_RECOVERY"

+ 3
- 3
buildroot/share/tests/LPC1768-tests View File

38
 opt_set TEMP_SENSOR_BED 5
38
 opt_set TEMP_SENSOR_BED 5
39
 opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT ADAPTIVE_FAN_SLOWING NO_FAN_SLOWING_IN_PID_TUNING \
39
 opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT ADAPTIVE_FAN_SLOWING NO_FAN_SLOWING_IN_PID_TUNING \
40
            FILAMENT_WIDTH_SENSOR FILAMENT_LCD_DISPLAY PID_EXTRUSION_SCALING \
40
            FILAMENT_WIDTH_SENSOR FILAMENT_LCD_DISPLAY PID_EXTRUSION_SCALING \
41
-           FIX_MOUNTED_PROBE Z_SAFE_HOMING AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
41
+           FIX_MOUNTED_PROBE AUTO_BED_LEVELING_BILINEAR G29_RETRY_AND_RECOVER Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
42
            BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
42
            BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
43
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
43
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
44
-           ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE \
44
+           Z_SAFE_HOMING ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE \
45
            LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA
45
            LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA
46
 opt_set GRID_MAX_POINTS_X 16
46
 opt_set GRID_MAX_POINTS_X 16
47
 exec_test $1 $2 "MKS SBASE Many Features"
47
 exec_test $1 $2 "MKS SBASE Many Features"
53
            AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 EEPROM_SETTINGS \
53
            AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 EEPROM_SETTINGS \
54
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR FAN_SOFT_PWM \
54
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR FAN_SOFT_PWM \
55
            SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME \
55
            SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME \
56
-           ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \
56
+           ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK GCODE_MACROS \
57
            VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
57
            VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
58
            EXTRA_FAN_SPEED FWRETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \
58
            EXTRA_FAN_SPEED FWRETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \
59
            MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
59
            MENU_ADDAUTOSTART SDCARD_SORT_ALPHA

+ 3
- 3
buildroot/share/tests/LPC1769-tests View File

16
 opt_set TEMP_SENSOR_1 -1
16
 opt_set TEMP_SENSOR_1 -1
17
 opt_set TEMP_SENSOR_BED 5
17
 opt_set TEMP_SENSOR_BED 5
18
 opt_enable VIKI2 SDSUPPORT ADAPTIVE_FAN_SLOWING NO_FAN_SLOWING_IN_PID_TUNING \
18
 opt_enable VIKI2 SDSUPPORT ADAPTIVE_FAN_SLOWING NO_FAN_SLOWING_IN_PID_TUNING \
19
-           FIX_MOUNTED_PROBE Z_SAFE_HOMING AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
19
+           FIX_MOUNTED_PROBE AUTO_BED_LEVELING_BILINEAR G29_RETRY_AND_RECOVER Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
20
            BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
20
            BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
21
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
21
            PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
22
-           ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE \
22
+           Z_SAFE_HOMING ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE \
23
            LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA
23
            LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA
24
 opt_set GRID_MAX_POINTS_X 16
24
 opt_set GRID_MAX_POINTS_X 16
25
 exec_test $1 $2 "Smoothieboard Many Features"
25
 exec_test $1 $2 "Smoothieboard Many Features"
31
            AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 EEPROM_SETTINGS \
31
            AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 EEPROM_SETTINGS \
32
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR FAN_SOFT_PWM \
32
            FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR FAN_SOFT_PWM \
33
            SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME \
33
            SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME \
34
-           ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \
34
+           ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK GCODE_MACROS \
35
            VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
35
            VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
36
            EXTRA_FAN_SPEED FWRETRACT MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
36
            EXTRA_FAN_SPEED FWRETRACT MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
37
 opt_set FAN_MIN_PWM 50
37
 opt_set FAN_MIN_PWM 50

+ 2
- 1
buildroot/share/tests/STM32F1-tests View File

10
 opt_set MOTHERBOARD BOARD_STM32F1R
10
 opt_set MOTHERBOARD BOARD_STM32F1R
11
 opt_set EXTRUDERS 2
11
 opt_set EXTRUDERS 2
12
 opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT \
12
 opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT \
13
-           PAREN_COMMENTS GCODE_MOTION_MODES SINGLENOZZLE TOOLCHANGE_FILAMENT_SWAP TOOLCHANGE_PARK
13
+           PAREN_COMMENTS GCODE_MOTION_MODES SINGLENOZZLE TOOLCHANGE_FILAMENT_SWAP TOOLCHANGE_PARK \
14
+           GCODE_MACROS
14
 exec_test $1 $2 "STM32F1R EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT PAREN_COMMENTS GCODE_MOTION_MODES"
15
 exec_test $1 $2 "STM32F1R EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT PAREN_COMMENTS GCODE_MOTION_MODES"
15
 
16
 
16
 # cleanup
17
 # cleanup

+ 1
- 1
buildroot/share/tests/esp32-tests View File

8
 
8
 
9
 restore_configs
9
 restore_configs
10
 opt_set MOTHERBOARD BOARD_ESP32
10
 opt_set MOTHERBOARD BOARD_ESP32
11
-opt_enable WIFISUPPORT
11
+opt_enable WIFISUPPORT GCODE_MACROS
12
 opt_set "WIFI_SSID \"ssid\""
12
 opt_set "WIFI_SSID \"ssid\""
13
 opt_set "WIFI_PWD \"password\""
13
 opt_set "WIFI_PWD \"password\""
14
 opt_set TX_BUFFER_SIZE 64
14
 opt_set TX_BUFFER_SIZE 64

+ 1
- 1
buildroot/share/tests/megaatmega2560-tests View File

58
 opt_set TEMP_SENSOR_4 1000
58
 opt_set TEMP_SENSOR_4 1000
59
 opt_set TEMP_SENSOR_BED 1
59
 opt_set TEMP_SENSOR_BED 1
60
 opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_EDITING ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
60
 opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_EDITING ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
61
-           EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT \
61
+           EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT GCODE_MACROS \
62
            USB_FLASH_DRIVE_SUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI \
62
            USB_FLASH_DRIVE_SUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI \
63
            CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME JUNCTION_DEVIATION
63
            CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME JUNCTION_DEVIATION
64
 exec_test $1 $2 "Azteeg X3 with 5 extruders, RRDFGSC, probeless UBL, Linear Advance, and more"
64
 exec_test $1 $2 "Azteeg X3 with 5 extruders, RRDFGSC, probeless UBL, Linear Advance, and more"

+ 4
- 2
config/default/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20   // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10   // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/3DFabXYZ/Migbot/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/AliExpress/UM2pExt/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Anet/A2/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Anet/A2plus/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Anet/A6/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Anet/A8/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/AnyCubic/i3/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/ArmEd/Configuration_adv.h View File

857
    */
857
    */
858
   //#define POWER_LOSS_RECOVERY
858
   //#define POWER_LOSS_RECOVERY
859
   #if ENABLED(POWER_LOSS_RECOVERY)
859
   #if ENABLED(POWER_LOSS_RECOVERY)
860
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
861
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
860
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
861
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
862
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
863
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
862
 
864
 
863
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
865
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
864
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
866
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/BIBO/TouchX/default/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/BQ/Hephestos/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/BQ/Hephestos_2/Configuration_adv.h View File

858
    */
858
    */
859
   //#define POWER_LOSS_RECOVERY
859
   //#define POWER_LOSS_RECOVERY
860
   #if ENABLED(POWER_LOSS_RECOVERY)
860
   #if ENABLED(POWER_LOSS_RECOVERY)
861
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
862
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
861
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
862
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
863
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
864
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
863
 
865
 
864
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
866
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
865
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
867
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/BQ/WITBOX/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Cartesio/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/CR-10/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/CR-10S/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/CR-10_5S/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/CR-10mini/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/CR-8/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/Ender-2/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/Ender-3/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Creality/Ender-4/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Einstart-S/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Felix/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/FlashForge/CreatorPro/Configuration_adv.h View File

849
    */
849
    */
850
   //#define POWER_LOSS_RECOVERY
850
   //#define POWER_LOSS_RECOVERY
851
   #if ENABLED(POWER_LOSS_RECOVERY)
851
   #if ENABLED(POWER_LOSS_RECOVERY)
852
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
853
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
852
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
853
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
854
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
855
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
854
 
856
 
855
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
856
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
858
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Formbot/Raptor/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Formbot/T_Rex_2+/Configuration_adv.h View File

857
    */
857
    */
858
   //#define POWER_LOSS_RECOVERY
858
   //#define POWER_LOSS_RECOVERY
859
   #if ENABLED(POWER_LOSS_RECOVERY)
859
   #if ENABLED(POWER_LOSS_RECOVERY)
860
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
861
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
860
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
861
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
862
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
863
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
862
 
864
 
863
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
865
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
864
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
866
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Formbot/T_Rex_3/Configuration_adv.h View File

857
    */
857
    */
858
   //#define POWER_LOSS_RECOVERY
858
   //#define POWER_LOSS_RECOVERY
859
   #if ENABLED(POWER_LOSS_RECOVERY)
859
   #if ENABLED(POWER_LOSS_RECOVERY)
860
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
861
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
860
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
861
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
862
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
863
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
862
 
864
 
863
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
865
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
864
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
866
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 8
- 2
config/examples/Geeetech/A10M/Configuration_adv.h View File

853
    */
853
    */
854
   #define POWER_LOSS_RECOVERY
854
   #define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    #define POWER_LOSS_PIN   69     // Pin to detect power loss
857
-    #define POWER_LOSS_STATE LOW    // State of pin indicating power loss
856
+    #define POWER_LOSS_PIN           69 // Pin to detect power loss
857
+    #define POWER_LOSS_STATE        LOW // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
860
+
861
+    // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
862
+    // especially with "vase mode" printing. Set too high and vases cannot be continued.
863
+    #define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
858
   #endif
864
   #endif
859
 
865
 
860
   /**
866
   /**

+ 8
- 2
config/examples/Geeetech/A20M/Configuration_adv.h View File

853
    */
853
    */
854
   #define POWER_LOSS_RECOVERY
854
   #define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    #define POWER_LOSS_PIN   69     // Pin to detect power loss
857
-    #define POWER_LOSS_STATE LOW    // State of pin indicating power loss
856
+    #define POWER_LOSS_PIN           69 // Pin to detect power loss
857
+    #define POWER_LOSS_STATE        LOW // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
860
+
861
+    // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
862
+    // especially with "vase mode" printing. Set too high and vases cannot be continued.
863
+    #define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
858
   #endif
864
   #endif
859
 
865
 
860
   /**
866
   /**

+ 4
- 2
config/examples/Geeetech/MeCreator2/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Infitary/i3-M508/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/JGAurora/A5/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/MakerParts/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Malyan/M150/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Malyan/M200/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Mks/Robin/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Mks/Sbase/Configuration_adv.h View File

854
    */
854
    */
855
   //#define POWER_LOSS_RECOVERY
855
   //#define POWER_LOSS_RECOVERY
856
   #if ENABLED(POWER_LOSS_RECOVERY)
856
   #if ENABLED(POWER_LOSS_RECOVERY)
857
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
858
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
857
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
858
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
859
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
860
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
859
 
861
 
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
862
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
863
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/RapideLite/RL200/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/RigidBot/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/SCARA/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h View File

850
    */
850
    */
851
   //#define POWER_LOSS_RECOVERY
851
   //#define POWER_LOSS_RECOVERY
852
   #if ENABLED(POWER_LOSS_RECOVERY)
852
   #if ENABLED(POWER_LOSS_RECOVERY)
853
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
854
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
853
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
854
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
855
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
856
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
855
 
857
 
856
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
857
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Sanguinololu/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/TheBorg/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/TinyBoy2/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Tronxy/X3A/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Tronxy/X5S-2E/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/UltiMachine/Archim1/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/UltiMachine/Archim2/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/VORONDesign/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Velleman/K8200/Configuration_adv.h View File

866
    */
866
    */
867
   //#define POWER_LOSS_RECOVERY
867
   //#define POWER_LOSS_RECOVERY
868
   #if ENABLED(POWER_LOSS_RECOVERY)
868
   #if ENABLED(POWER_LOSS_RECOVERY)
869
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
870
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
869
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
870
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
871
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
872
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
871
 
873
 
872
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
874
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
873
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
875
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/Velleman/K8400/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 8
- 2
config/examples/WASP/PowerWASP/Configuration_adv.h View File

853
    */
853
    */
854
   #define POWER_LOSS_RECOVERY
854
   #define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    #define POWER_LOSS_PIN   65    // Pin to detect power loss
857
-    #define POWER_LOSS_STATE LOW   // State of pin indicating power loss
856
+    #define POWER_LOSS_PIN           65 // Pin to detect power loss
857
+    #define POWER_LOSS_STATE        LOW // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
860
+
861
+    // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
862
+    // especially with "vase mode" printing. Set too high and vases cannot be continued.
863
+    #define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
858
   #endif
864
   #endif
859
 
865
 
860
   /**
866
   /**

+ 4
- 2
config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/Anycubic/Kossel/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/MKS/SBASE/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/Tevo Little Monster/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/generic/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/kossel_mini/Configuration_adv.h View File

851
    */
851
    */
852
   //#define POWER_LOSS_RECOVERY
852
   //#define POWER_LOSS_RECOVERY
853
   #if ENABLED(POWER_LOSS_RECOVERY)
853
   #if ENABLED(POWER_LOSS_RECOVERY)
854
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
855
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
854
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
855
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
856
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
857
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
856
 
858
 
857
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
858
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/delta/kossel_xl/Configuration_adv.h View File

852
    */
852
    */
853
   //#define POWER_LOSS_RECOVERY
853
   //#define POWER_LOSS_RECOVERY
854
   #if ENABLED(POWER_LOSS_RECOVERY)
854
   #if ENABLED(POWER_LOSS_RECOVERY)
855
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
856
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
855
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
856
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
857
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
858
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
857
 
859
 
858
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
859
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/makibox/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/tvrrug/Round2/Configuration_adv.h View File

853
    */
853
    */
854
   //#define POWER_LOSS_RECOVERY
854
   //#define POWER_LOSS_RECOVERY
855
   #if ENABLED(POWER_LOSS_RECOVERY)
855
   #if ENABLED(POWER_LOSS_RECOVERY)
856
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
857
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
856
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
857
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
858
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
859
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
858
 
860
 
859
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
860
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
862
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

+ 4
- 2
config/examples/wt150/Configuration_adv.h View File

854
    */
854
    */
855
   //#define POWER_LOSS_RECOVERY
855
   //#define POWER_LOSS_RECOVERY
856
   #if ENABLED(POWER_LOSS_RECOVERY)
856
   #if ENABLED(POWER_LOSS_RECOVERY)
857
-    //#define POWER_LOSS_PIN   44     // Pin to detect power loss
858
-    //#define POWER_LOSS_STATE HIGH   // State of pin indicating power loss
857
+    //#define POWER_LOSS_PIN         44 // Pin to detect power loss
858
+    //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
859
+    //#define POWER_LOSS_PURGE_LEN   20 // (mm) Length of filament to purge on resume
860
+    //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
859
 
861
 
860
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
862
     // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
861
     // especially with "vase mode" printing. Set too high and vases cannot be continued.
863
     // especially with "vase mode" printing. Set too high and vases cannot be continued.

Loading…
Cancel
Save