Skip to content

Commit

Permalink
🩹 Fix laser with no PWM compile (MarlinFirmware#25290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-the-Kuhn authored and EvilGremlin committed May 17, 2023
1 parent c9f1f31 commit 0a9ac9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/feature/spindle_laser.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class SpindleLaser {
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);
Expand Down

0 comments on commit 0a9ac9b

Please sign in to comment.