Skip to content

Serial.print() have to be: comms->print()#37

Closed
sigmaeo wants to merge 9 commits into
thijse:masterfrom
sigmaeo:master
Closed

Serial.print() have to be: comms->print()#37
sigmaeo wants to merge 9 commits into
thijse:masterfrom
sigmaeo:master

Conversation

@sigmaeo

@sigmaeo sigmaeo commented Mar 19, 2018

Copy link
Copy Markdown

1.) fixed: 3x Serial left instead of 3x comms
2.) make readBin() safe for less received bytes (see issue #38)
3.) fixed some missing unescape() (see issue #39)

@gyssels

gyssels commented Sep 30, 2021

Copy link
Copy Markdown

@sigmaeo I will accept PR on gyssels/Arduino-CmdMessenger, and I messaging the other PR submitters so it can become an active branch
I engage myself to do a full PR back here if in the future I'll not maintain this anymore.

sigmaeo added 2 commits August 1, 2022 19:22
Two small changes because of grumbling from the compiler Arduino 1.8.19.
A small change because of grumbling from the compiler Arduino 1.8.19.
thijse added a commit that referenced this pull request Jun 1, 2026
Applied PRs:
- #33: Fix Adafruit library name in library.json
- #35: Add #if guards for CMDMESSENGER_MAXCALLBACKS, LastArgLength tracking
- #36: Fix startCommand init, Serial.print->comms->print, return NULL fix
- #37: Add unescape() calls in readStringArg/copyStringArg/compareStringArg
- #42: Fix min/max types for ESP8266 (ConsoleShell, HeaterSim)
- #44: Reformat LICENSE.md for GitHub detection

New features (from MobiFlight fork):
- sendArg(T) - send argument without field separator
- sendArg(T, n) - send with precision, no separator
- sendSciArg(double, n) - scientific notation, no separator
- sendBinArg(T) - binary format, no separator
- New example: SendWithoutSeparator

Other:
- Add VS Code tasks.json and launch.json
- Add .gitignore
- Add new keywords to keywords.txt
@thijse

thijse commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Thank you — all of the substantive fixes in this PR are already present in the current codebase: comms->print() is used throughout, unescape() is called in all string read functions, split_r() tracks LastArgLength, and readBin() has bounds checking. Closing as already applied.

@thijse thijse closed this Jun 8, 2026
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