Skip to content

Commit

Permalink
🩹 G0/G1 S seen => seenval
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 6, 2022
1 parent 5a2cc41 commit 68f13ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void GcodeSuite::get_destination_from_command() {
if (WITHIN(parser.codenum, 1, TERN(ARC_SUPPORT, 3, 1)) || TERN0(BEZIER_CURVE_SUPPORT, parser.codenum == 5)) {
planner.laser_inline.status.isPowered = true;
if (parser.seen('I')) cutter.set_enabled(true); // This is set for backward LightBurn compatibility.
if (parser.seen('S')) {
if (parser.seenval('S')) {
const float v = parser.value_float(),
u = TERN(LASER_POWER_TRAP, v, cutter.power_to_range(v));
cutter.menuPower = cutter.unitPower = u;
Expand Down

0 comments on commit 68f13ca

Please sign in to comment.