mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-02-17 06:48:05 +00:00
🩹 Fix laser with no PWM compile (#25290)
This commit is contained in:
parent
b6a1a6273f
commit
802fe519a3
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ public:
|
|||
set_enabled(state);
|
||||
if (state) {
|
||||
if (!menuPower) menuPower = cpwr_to_upwr(SPEED_POWER_STARTUP);
|
||||
power = upower_to_ocr(menuPower);
|
||||
power = TERN(SPINDLE_LASER_USE_PWM, upower_to_ocr(menuPower), 255);
|
||||
apply_power(power);
|
||||
} else
|
||||
apply_power(0);
|
||||
|
|
Loading…
Reference in a new issue