Skip to content

Commit 03dc42d

Browse files
committed
✨ PLR_BED_THRESHOLD
MarlinFirmware/Marlin#26649
1 parent 296367b commit 03dc42d

File tree

358 files changed

+3570
-3212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+3570
-3212
lines changed

config/default/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,19 +1753,20 @@
17531753
*/
17541754
//#define POWER_LOSS_RECOVERY
17551755
#if ENABLED(POWER_LOSS_RECOVERY)
1756-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1757-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1758-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1759-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1760-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1761-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1756+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1757+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1758+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17621763
//#define POWER_LOSS_PULLDOWN
1763-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1764-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1764+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17651766

17661767
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17671768
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1768-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1769+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17691770

17701771
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17711772
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/3DFabXYZ/Migbot/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,19 +1754,20 @@
17541754
*/
17551755
//#define POWER_LOSS_RECOVERY
17561756
#if ENABLED(POWER_LOSS_RECOVERY)
1757-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1757+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1759+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1760+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1761+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1762+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1763+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17631764
//#define POWER_LOSS_PULLDOWN
1764-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1765+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1766+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17661767

17671768
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17681769
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1769-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1770+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17701771

17711772
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17721773
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/ADIMLab/Gantry v1/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,19 +1754,20 @@
17541754
*/
17551755
//#define POWER_LOSS_RECOVERY
17561756
#if ENABLED(POWER_LOSS_RECOVERY)
1757-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760-
//#define POWER_LOSS_PIN 28 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1757+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1759+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1760+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1761+
//#define POWER_LOSS_PIN 28 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1762+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1763+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17631764
//#define POWER_LOSS_PULLDOWN
1764-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1765+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1766+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17661767

17671768
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17681769
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1769-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1770+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17701771

17711772
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17721773
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/ADIMLab/Gantry v2/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,19 +1754,20 @@
17541754
*/
17551755
//#define POWER_LOSS_RECOVERY
17561756
#if ENABLED(POWER_LOSS_RECOVERY)
1757-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1757+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1759+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1760+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1761+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1762+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1763+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17631764
//#define POWER_LOSS_PULLDOWN
1764-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1765+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1766+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17661767

17671768
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17681769
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1769-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1770+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17701771

17711772
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17721773
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/Alfawise/U20-bltouch/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,19 +1763,20 @@
17631763
*/
17641764
#define POWER_LOSS_RECOVERY
17651765
#if ENABLED(POWER_LOSS_RECOVERY)
1766-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1767-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1768-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1769-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1770-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1771-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1766+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1767+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1768+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1769+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1770+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1771+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1772+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17721773
//#define POWER_LOSS_PULLDOWN
1773-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1774-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1774+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1775+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17751776

17761777
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17771778
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1778-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1779+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17791780

17801781
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17811782
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/Alfawise/U20/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,19 +1754,20 @@
17541754
*/
17551755
#define POWER_LOSS_RECOVERY
17561756
#if ENABLED(POWER_LOSS_RECOVERY)
1757-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1757+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1759+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1760+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1761+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1762+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1763+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17631764
//#define POWER_LOSS_PULLDOWN
1764-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1765+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1766+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17661767

17671768
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17681769
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1769-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1770+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17701771

17711772
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17721773
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/AliExpress/CL-260/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,19 +1754,20 @@
17541754
*/
17551755
//#define POWER_LOSS_RECOVERY
17561756
#if ENABLED(POWER_LOSS_RECOVERY)
1757-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1757+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1759+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1760+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1761+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1762+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1763+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17631764
//#define POWER_LOSS_PULLDOWN
1764-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1765+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1766+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17661767

17671768
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17681769
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1769-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1770+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17701771

17711772
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17721773
//#define POWER_LOSS_RECOVER_ZHOME

config/examples/AliExpress/UM2pExt/Configuration_adv.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,19 +1754,20 @@
17541754
*/
17551755
//#define POWER_LOSS_RECOVERY
17561756
#if ENABLED(POWER_LOSS_RECOVERY)
1757-
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758-
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1759-
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1760-
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1761-
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1762-
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
1757+
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1758+
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1759+
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
1760+
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
1761+
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
1762+
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
1763+
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17631764
//#define POWER_LOSS_PULLDOWN
1764-
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1765-
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
1765+
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
1766+
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
17661767

17671768
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
17681769
// especially with "vase mode" printing. Set too high and vases cannot be continued.
1769-
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
1770+
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
17701771

17711772
// Enable if Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
17721773
//#define POWER_LOSS_RECOVER_ZHOME

0 commit comments

Comments
 (0)