Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixing NullReferenceException because of readStringUntil #4

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
Oct 19, 2022
Merged

Fixing NullReferenceException because of readStringUntil #4

merged 1 commit into from
Oct 19, 2022

Conversation

Suisse00
Copy link
Contributor

@Suisse00 Suisse00 commented Jul 20, 2019

  1. readStringUntil isn't a blocking method and will return null if it can't find 13
  2. 64 is like 1/6 of the size of the packet we are waiting (Arduino serialize float as 00.00 (so 5 characters) + the comma separator, so we could easily end up calling readStringUntil way too early.

1) readStringUntil isn't a blocking method
2) 64 is like 1/6 of the size of the packet we are waiting, so we could end up calling readStringUntil way too early.
@Suisse00
Copy link
Contributor Author

It seems there is a bug ticket (#1) for this issue, so you will be able to close it as well after this PR.

@IoTPanic IoTPanic mentioned this pull request Apr 11, 2020
@PaulZC
Copy link
Contributor

PaulZC commented Oct 19, 2022

Hi @Suisse00 ,

Thank you for the contribution - and apologies for the VERY slow reply!

Merging into v1.0.2 for testing...

Very best wishes,
Paul

@PaulZC PaulZC changed the base branch from master to v1.0.2 October 19, 2022 11:31
@PaulZC PaulZC merged commit 16d9d01 into sparkfun:v1.0.2 Oct 19, 2022
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