🩹 Fix Spindle/Laser ENA pin test (#25622)

This commit is contained in:
Alexey D. Filimonov
2023-04-17 02:38:12 +03:00
committed by GitHub
parent 802fe519a3
commit 09ddf9c6ef

View File

@@ -210,7 +210,7 @@ public:
enable = false; enable = false;
apply_power(0); apply_power(0);
} }
#if SPINDLE_LASER_ENA_PIN #if PIN_EXISTS(SPINDLE_LASER_ENA)
WRITE(SPINDLE_LASER_ENA_PIN, enable ? SPINDLE_LASER_ACTIVE_STATE : !SPINDLE_LASER_ACTIVE_STATE); WRITE(SPINDLE_LASER_ENA_PIN, enable ? SPINDLE_LASER_ACTIVE_STATE : !SPINDLE_LASER_ACTIVE_STATE);
#endif #endif
enable_state = enable; enable_state = enable;