Skip to content

firmware callbacks #359

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

Merged
merged 1 commit into from
Mar 14, 2017
Merged

firmware callbacks #359

merged 1 commit into from
Mar 14, 2017

Conversation

zfields
Copy link
Contributor

@zfields zfields commented Mar 14, 2017

This provides maximum functionality without breaking API compatibility or a change in existing usage.

This works for REPORT_FIRMWARE, because it is wrapped in a sysex message. A sysex is parsed in its entirety before being processed, which allows us to uniformly invoke the callback and discard buffered bytes (or manage their absence) as we see fit.

This is tested and confirmed on the ESP8266, Uno and 101.

@soundanalogous soundanalogous merged commit 0d9e533 into firmata:master Mar 14, 2017
@zfields zfields deleted the firmware branch March 15, 2017 02:04
@soundanalogous soundanalogous mentioned this pull request Mar 18, 2017
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.

2 participants