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 for issue #252: bug in MicroBitUARTService#read when buffer conta… #253

Merged
merged 2 commits into from Jan 6, 2017

Conversation

kartben
Copy link
Contributor

@kartben kartben commented Dec 19, 2016

…ins NULL character

Signed-off-by: Benjamin Cabé benjamin@eclipse.org

…ad when buffer contains NULL character

Signed-off-by: Benjamin Cabé <benjamin@eclipse.org>
@martinwork
Copy link
Contributor

Should the && operands be swapped as well, to avoid reading and discarding an extra character after len have been read?

@jamesadevine
Copy link
Contributor

Yup, @martinwork . We really need a Stream abstraction, it's been on our todo list for a while. This is another place where the same broken logic has cropped up again, I suspect because it's been implemented across 3 different classes, and the first time it was caught the change wasn't applied here.

…ters have been read

Signed-off-by: Benjamin Cabé <benjamin@eclipse.org>
@kartben
Copy link
Contributor Author

kartben commented Dec 20, 2016

Good catch @martinwork. I updated the condition.

@kartben
Copy link
Contributor Author

kartben commented Jan 6, 2017

any plan to merge this?

@finneyj
Copy link
Contributor

finneyj commented Jan 6, 2017

Apologies @kartben - my many hands are full as usual. :-)

Looks great, very happy to merge. Thanks for the patch.

@finneyj finneyj merged commit f569f5f into lancaster-university:master Jan 6, 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.

None yet

4 participants