Browse Source

✨ Configurable FREEZE pin state (#23948)

Giuliano Zaro 2 years ago
parent
commit
692f42ee7d
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/MarlinCore.cpp

+ 1
- 1
Marlin/src/MarlinCore.cpp View File

@@ -476,7 +476,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
476 476
   #endif
477 477
 
478 478
   #if HAS_FREEZE_PIN
479
-    Stepper::frozen = READ(FREEZE_PIN) ^ DISABLED(INVERT_FREEZE_PIN);
479
+    stepper.frozen = READ(FREEZE_PIN) == FREEZE_STATE;
480 480
   #endif
481 481
 
482 482
   #if HAS_HOME

Loading…
Cancel
Save