Skip to content
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

Removed '.' as delimiter because it prevents passing floating point arguments. #6

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

r-a-i
Copy link

@r-a-i r-a-i commented Jan 8, 2021

No description provided.

joshmarinacci and others added 8 commits July 19, 2014 11:28
New versions of the Arduino IDE throw a compiler warning
if you pass a const char * aka string literal ("hello world") to
a char * function argument. This commit changes the prototype to
take a const char *.
The examples did not compile since cmdInit was changed to
accept a Stream reference instead of a serial port speed. This
change fixes all examples. It also adds a new function
cmdGetStream(). This allows command functions to get access to
the same stream that is used by the command interpreter itself.
If you change a sketch from using the serial port to using a
different stream, you can simply change the initialisation of the
cmd module and all command functions can remain unchanged.

The commit also contains a fix to ignore \n characters as they
are usually not part of a valid command. This way, the code works
with all terminals, no matter if they send \r or \r\n line endings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants