Skip to content

Commit 68d34e2

Browse files
committed
Refactor usage of PLR_BED_THRESHOLD
1 parent a215bc2 commit 68d34e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Marlin/Configuration_adv.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1746,9 +1746,9 @@
17461746
//#define POWER_LOSS_RECOVERY
17471747
#if ENABLED(POWER_LOSS_RECOVERY)
17481748
#define PLR_ENABLED_DEFAULT false // Power-Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
1749-
//#define PLR_BED_THRESHOLD BED_MAXTEMP // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1750-
1751-
//#define POWER_LOSS_PIN 44 // Pin to detect power-loss. Set to -1 to disable default pin on boards without module, or comment to use board default.
1749+
#if TEMP_SENSOR_BED
1750+
#define PLR_BED_THRESHOLD 0 // (°C) Skip user confirmation at or above this bed temperature (0 to disable)
1751+
#endif
17521752
//#define POWER_LOSS_STATE HIGH // State of pin indicating power-loss
17531753
//#define POWER_LOSS_PULLUP // Set pullup / pulldown as appropriate for your sensor
17541754
//#define POWER_LOSS_PULLDOWN

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)