Default on/off for Power Loss Recovery (#17051)

This commit is contained in:
InsanityAutomation
2020-03-02 17:07:53 -05:00
committed by GitHub
parent ad4a9eb73a
commit 552f7a91d0
3 changed files with 10 additions and 2 deletions

View File

@ -65,6 +65,10 @@
#define NUM_Z_STEPPER_DRIVERS 1
#endif
#ifndef PLR_ENABLED_DEFAULT
#define PLR_ENABLED_DEFAULT true
#endif
#if ENABLED(Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS)
#undef Z_STEPPER_ALIGN_AMP
#endif

View File

@ -930,7 +930,7 @@ void MarlinSettings::postprocess() {
#if ENABLED(POWER_LOSS_RECOVERY)
recovery.enabled
#else
true
PLR_ENABLED_DEFAULT
#endif
;
EEPROM_WRITE(recovery_enabled);
@ -2670,7 +2670,7 @@ void MarlinSettings::reset() {
//
#if ENABLED(POWER_LOSS_RECOVERY)
recovery.enable(true);
recovery.enable(PLR_ENABLED_DEFAULT);
#endif
//