Skip to content

Commit 692f42e

Browse files
authored
✨ Configurable FREEZE pin state (MarlinFirmware#23948)
1 parent 20b5615 commit 692f42e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/MarlinCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
476476
#endif
477477

478478
#if HAS_FREEZE_PIN
479-
Stepper::frozen = READ(FREEZE_PIN) ^ DISABLED(INVERT_FREEZE_PIN);
479+
stepper.frozen = READ(FREEZE_PIN) == FREEZE_STATE;
480480
#endif
481481

482482
#if HAS_HOME

0 commit comments

Comments
 (0)