mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 14:12:52 +00:00
Set laser/spindle PWM to lowest speed on M5
This commit is contained in:
parent
b83c49befb
commit
b5e98ac1b7
1 changed files with 3 additions and 0 deletions
|
@ -6283,6 +6283,9 @@ inline void gcode_G92() {
|
|||
inline void gcode_M5() {
|
||||
stepper.synchronize();
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue