-
Notifications
You must be signed in to change notification settings - Fork 597
motor.command() and CRLF #46
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
Comments
Just to mention that I just spent at least an hour trying to figure out with commander wasn't accepting my input ended up with this I really think it should be patched asap, no matter what happens next with the commander interface? Do you want a pull request? |
You're right. If you have time go for it. :) |
The eol character is now configurable The user can now actuvate echo feedback to see what he is typing I also removed a duplication in two run() overload, while fixing what I think was a mistake by enforcing the use of the provided argument Stream& even if the ctor one is not null. Lastly, I warn the user if \n is configured but \r is detected (only in user friendly mode) All the past code should work as before (no API change required)
see #75 Thank you! |
Uh oh!
There was an error while loading. Please reload this page.
This confused me - so I'm raising an issue for discussion.
motor.command(String)
doesn't work well with Serial set to eol=CRLF (i.e.\r\n
)With CRLF all commands are 'sets' e.g.
P
will set the P term to zero.A fix for this is to either configure your serial terminal to LF (
\n
)e.g. platformio (which defaults to CRLF) you could set the following in you platformio.ini
If we wanted to be more 'tolerant' we could change the code e.g. to be:
The text was updated successfully, but these errors were encountered: