Browse Source

🩹 G0/G1 S seen => seenval

Scott Lahteine 1 year ago
parent
commit
68f13ca9cf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/gcode.cpp

+ 1
- 1
Marlin/src/gcode/gcode.cpp View File

@@ -233,7 +233,7 @@ void GcodeSuite::get_destination_from_command() {
233 233
       if (WITHIN(parser.codenum, 1, TERN(ARC_SUPPORT, 3, 1)) || TERN0(BEZIER_CURVE_SUPPORT, parser.codenum == 5)) {
234 234
         planner.laser_inline.status.isPowered = true;
235 235
         if (parser.seen('I')) cutter.set_enabled(true);       // This is set for backward LightBurn compatibility.
236
-        if (parser.seen('S')) {
236
+        if (parser.seenval('S')) {
237 237
           const float v = parser.value_float(),
238 238
                       u = TERN(LASER_POWER_TRAP, v, cutter.power_to_range(v));
239 239
           cutter.menuPower = cutter.unitPower = u;

Loading…
Cancel
Save