Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Added a nullHandler function to deal with blank line input.#5

Open
dekay wants to merge 3 commits intokroimon:masterkroimon/Arduino-SerialCommand:masterfrom
dekay:masterdekay/Arduino-SerialCommand:masterCopy head branch name to clipboard
Open

Added a nullHandler function to deal with blank line input.#5
dekay wants to merge 3 commits intokroimon:masterkroimon/Arduino-SerialCommand:masterfrom
dekay:masterdekay/Arduino-SerialCommand:masterCopy head branch name to clipboard

Conversation

@dekay
Copy link

@dekay dekay commented Feb 16, 2014

This change recognizes when the user hits return on a blank line. I needed to handle this case for my project (a blank line is used to wake the device I am emulating, after which it sends an ack() response), but I can see it coming in useful in other applications.

@dekay
Copy link
Author

dekay commented Feb 16, 2014

Added a second commit that adds support for a second line terminator. In my application, I needed to handle lines that terminated in either 0x0a or 0x0d.

This probably should have been done in a separate branch from the other change. Sorry about that. I'm a git newb.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.