Skip to content
Snippets Groups Projects
Commit cf2922f1 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Laser/spindle PWM off on M5

parent cf3fd212
Branches
Tags
No related merge requests found
...@@ -131,6 +131,9 @@ void GcodeSuite::M3_M4(bool is_M3) { ...@@ -131,6 +131,9 @@ void GcodeSuite::M3_M4(bool is_M3) {
void GcodeSuite::M5() { void GcodeSuite::M5() {
stepper.synchronize(); stepper.synchronize();
WRITE(SPINDLE_LASER_ENABLE_PIN, !SPINDLE_LASER_ENABLE_INVERT); WRITE(SPINDLE_LASER_ENABLE_PIN, !SPINDLE_LASER_ENABLE_INVERT);
#if ENABLED(SPINDLE_LASER_PWM)
analogWrite(SPINDLE_LASER_PWM_PIN, SPINDLE_LASER_PWM_INVERT ? 255 : 0);
#endif
delay_for_power_down(); delay_for_power_down();
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment