Skip to content

Commit

Permalink
✨ Configurable FREEZE pin state (MarlinFirmware#23948)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMagician authored and LCh-77 committed Jul 19, 2022
1 parent e654d2b commit f78daa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
#endif

#if HAS_FREEZE_PIN
Stepper::frozen = READ(FREEZE_PIN) ^ DISABLED(INVERT_FREEZE_PIN);
stepper.frozen = READ(FREEZE_PIN) == FREEZE_STATE;
#endif

#if HAS_HOME
Expand Down

0 comments on commit f78daa1

Please sign in to comment.