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

Fix exception related to ENABLE_CMD_EXECUTOR definition #1668

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Apr 13, 2019

If framework is built with ENABLE_CMD_EXECUTOR disabled (0), but application is built with it enabled, serial receive causes an exception.
This happens because the member data for HardwareSerial gets shifted by 4 bytes, so uart becomes invalid (we get options instead, usually 1).

It is safer to always build with HardwareSerial::commandExecutor included.

If framework is built with `ENABLE_CMD_EXECUTOR` disabled (0), but application is built with it enabled, serial receive causes an exception.
This happens because the member data for `HardwareSerial` gets shifted by 4 bytes, so `uart` becomes invalid (we get `options` instead, usually 1).

It is safer to always build with `HardwareSerial::commandExecutor` included.
@slaff slaff added this to the 3.9.0 milestone Apr 15, 2019
@slaff slaff merged commit 4311a9c into SmingHub:develop Apr 15, 2019
@mikee47 mikee47 deleted the fix/enable-cmd-executor branch April 25, 2019 05:46
@mikee47 mikee47 restored the fix/enable-cmd-executor branch April 26, 2019 07:19
@mikee47 mikee47 deleted the fix/enable-cmd-executor branch April 26, 2019 07:19
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