Spindle ON flag stuck in GUI

With command M3 and M5 the spindle can be turned ON and OFF but in GUI the Spindle ON flag stuck after first M3
Only get off in GUI after USB disconnect/re-connect sequence. Same for laser…

Initial response:
[GC:G0 G54 G17 G21 G90 G94 M5 M M9 T0 F0 S0] GUI: Spindle OFF flag
M3 S12000
[GC:G0 G54 G17 G21 G90 G94 M3 M M9 T0 F0 S12000] GUI: Spindle ON flag
M5 S0
[GC:G0 G54 G17 G21 G90 G94 M5 M M9 T0 F0 S0] GUI: still Spindle ON flag

Yeah that’s a malformed message from the firmware, what are you running?

That blank M shouldn’t be there next to M5/M3 - so our parser is likely parsing the 5/3 for state, but sees a M again right after and replacing the value with nothing because it’s M(nothing).

oh yes you are right. It looks like a firmware ā€˜glitch’. Didn’t see it on CNCjs as the G-Code parser seems to be more robust. I will try to find a way to suppress it but may be you can target the same robustness in gSender :slight_smile:

tested on:
LUNYEE 3018 PRO ULTRA
Firmware: Monport [VER:1.1f.20230316:] [OPT:VMZHL,35,254]
gSender 1.5.6 on RPI4 connected via USB to LUNYEE (Grbl)

We’ve added some logic to ignore storing command letters without a corresponding value which should resolve this in the next release. No guarantees though because we don’t have a version of the firmware with incorrect reporting.

@Rollo how’s this looking for you now?