mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-12-29 02:40:41 -07:00
🩹 Fix laser with no PWM compile (#25290)
This commit is contained in:
parent
5b8be446a0
commit
f62d47a165
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…
Add table
Add a link
Reference in a new issue