-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Colon ":" interpreted as command separator, bug or feature? #1568
Comments
On second, third, ..., n-th look, this is a bug causing comments, especially in-line comments, to not work at all. Push proposed by @C-o-r-E solves everything. |
I always thought this was some odd backwards compatibility thing. (I'm pretty sure I had a talk with someone about it a few years ago) Anyhow, I think this indeed can go. None of the current generation GCode senders depend on this odd behaviour, and it's causing more problems then it's fixing. |
Good to see those weird assumptions getting scrubbed out. We recently fixed another one where the SD file reader was ignoring names beginning with underscore. The original author probably thought it was needed to filter OS X custom files, or something. #1570 looks like a winner! |
* feature-request: Make sure a ROM is selected for ULTRA_LCD Remove M48 credits also Fix compile error in gcode_G29 Minor typos in the README Undubble MSG_MIN &MSG MAX Fixed in-line comments and escaping Attempt to resolve MarlinFirmware#1568 and add basic escape character support
* Marlin_phoenix: Make sure a ROM is selected for ULTRA_LCD Remove M48 credits also Fix compile error in gcode_G29 Minor typos in the README Undubble MSG_MIN &MSG MAX Fixed in-line comments and escaping Attempt to resolve MarlinFirmware#1568 and add basic escape character support
* feature-request: Make sure a ROM is selected for ULTRA_LCD Remove M48 credits also Fix compile error in gcode_G29 Minor typos in the README Undubble MSG_MIN &MSG MAX Fixed in-line comments and escaping Attempt to resolve MarlinFirmware#1568 and add basic escape character support
…e character support MarlinFirmware#1570 from upstream Marlin. Related commits: '99fb1bc' by C-o-r-E '63b62d8' by foosel 'ba27f90' by C-o-r-E
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Just noticed an unexpected behaviour by pure accident...
Including a colon in a command will cause the command to be split into two commands at the colon. So far, so interesting (not according to protocol though!). However, there is no way to escape this colon so it's impossible to use it in messages send from the host to the display.
Example:
Could we get some way to escape this? E.g. by tracking if last read character was a
\
and if so not interpret this as a command separator? Also: this stuff needs to be documented!Alternatively it might be that it is a simple typo, like already mentioned in #1035 and the
:
here should in fact be a;
(which would definitely make more sense given the following&& comment_mode == false
check and the spec for comments in GCODE):(link to line in Marlin_main.cpp - specific version to make sure link stays valid)
The text was updated successfully, but these errors were encountered: