Skip to content

Commit a196361

Browse files
committed
Refactor usage of PLR_BED_THRESHOLD
1 parent 7455776 commit a196361

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Marlin/Configuration_adv.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,9 @@
17441744
//#define POWER_LOSS_RECOVERY
17451745
#if ENABLED(POWER_LOSS_RECOVERY)
17461746
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1747-
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1747+
#if TEMP_SENSOR_BED
1748+
#define PLR_BED_THRESHOLD 0 // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1749+
#endif
17481750
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
17491751
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
17501752
//#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.

Marlin/src/inc/Conditionals_adv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,6 @@
13571357
#endif
13581358

13591359
// Power-Loss Recovery
1360-
#if ENABLED(POWER_LOSS_RECOVERY) && defined(PLR_BED_THRESHOLD)
1360+
#if defined(PLR_BED_THRESHOLD)
13611361
#define HAS_PLR_BED_THRESHOLD 1
13621362
#endif

0 commit comments

Comments
 (0)