Skip to content

Commit 67f8ba6

Browse files
timmmoorethinkyhead
authored andcommittedAug 20, 2019
Allow pullup/downs on power loss pin (MarlinFirmware#14986)
1 parent 19e21a8 commit 67f8ba6

File tree

101 files changed

+122
-1
lines changed

Some content is hidden

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

101 files changed

+122
-1
lines changed
 

‎Marlin/Configuration_adv.h

+1
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@
935935
#if ENABLED(POWER_LOSS_RECOVERY)
936936
//#define POWER_LOSS_PIN 44 // Pin to detect power loss
937937
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
938+
//#define POWER_LOSS_PULL // Set pullup / pulldown as appropriate
938939
//#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
939940
//#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
940941

‎Marlin/src/Marlin.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,10 @@ void setup() {
886886
runout.setup();
887887
#endif
888888

889+
#if ENABLED(POWER_LOSS_RECOVERY)
890+
recovery.setup();
891+
#endif
892+
889893
setup_killpin();
890894

891895
#if HAS_TMC220x

0 commit comments

Comments
 (0)
Please sign in to comment.