Bladeren bron

✨ Configurable FREEZE pin state (#23948)

Giuliano Zaro 2 jaren geleden
bovenliggende
commit
692f42ee7d
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      Marlin/src/MarlinCore.cpp

+ 1
- 1
Marlin/src/MarlinCore.cpp Bestand weergeven

@@ -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

Laden…
Annuleren
Opslaan