New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect parsing of M117, M118 commands when message starts with a digit #5008
Comments
Hello, It looks like there hasn't been any recent updates on this Best regards, ~ Your friendly GitIssueBot PS: I'm just an automated script, not a human being. |
Still present.
|
I experience the same issue. Seems it was introduced in PR #4727 The problem with the M117-Command is that any message starting with characters other than [A-Z_*/] will be ommitted. |
@pedrolamas maybe you can cross-check |
Sure, will take a look ASAP! |
Ok, found the issue and the good news (for me!) is that it is not related to that PR! The problem is with this regular expression that is used for command parsing. This is ok: >>> args_r.split("M118 TEST")
['', 'M', '118 ', 'TEST', ''] From the above, the code will use index 1 and 2 and build "M118" as the command. But if the first parameter starts with a number: >>> args_r.split("M118 0TEST")
['', 'M', '118 0', 'TEST', ''] The result of index 1 and 2 will be "M118 0" and that is obviously incorrect! |
@KevinOConnor seems it still fails for macro overrides:
If I have the above macro and then run
|
There is special handling for Technically, spaces should be ignored in gcode - so Cheers, |
Fixed my issue. Thanks! |
I understand that, I just wanted to point out that this latest change will probably break anyone overriding the |
As I understand it, commit 7ef7bf6 introduced a regression (as M117 used to work with special characters, but did not after that commit). I don't think commit f97fd7c introduces a regression (as M117.1 did not work with special characters before nor after that commit). If I've missed something, let me know. |
Sorry @KevinOConnor, you are correct: I should have tested the overrided |
Yeah, the original intent of #4727 was to allow for overriding |
This ticket is being closed because the underlying issue is now thought to be resolved. Best regards, PS: I'm just an automated script, not a human being. |
M117 ohai
andM118 ohai
are properly handled.M117 0hai
andM118 0hai
are not, with the0
(I think actually0h
) being parsed as a number.The following is what appears in the Fluidd console:
klippy.log
just saysThe text was updated successfully, but these errors were encountered: