Skip to content

Commit

Permalink
Init FREEZE based on active state
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 26, 2022
1 parent 00a9974 commit 0fdb3f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -4113,7 +4113,7 @@
//#define FREEZE_FEATURE
#if ENABLED(FREEZE_FEATURE)
//#define FREEZE_PIN 41 // Override the default (KILL) pin here
//#define FREEZE_STATE LOW // State of pin indicating freeze
#define FREEZE_STATE LOW // State of pin indicating freeze
#endif

/**
Expand Down
6 changes: 5 additions & 1 deletion Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,11 @@ void setup() {

#if ENABLED(FREEZE_FEATURE)
SETUP_LOG("FREEZE_PIN");
SET_INPUT_PULLUP(FREEZE_PIN);
#if FREEZE_STATE
SET_INPUT_PULLDOWN(FREEZE_PIN);
#else
SET_INPUT_PULLUP(FREEZE_PIN);
#endif
#endif

#if HAS_SUICIDE
Expand Down

0 comments on commit 0fdb3f0

Please sign in to comment.