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 mh-dm committed May 15, 2022
1 parent 9e463f3 commit 457f0a7
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 457f0a7

Please sign in to comment.