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

[RUN] Fix.speed could be NaN #1630

Merged
merged 1 commit into from Mar 28, 2022
Merged

[RUN] Fix.speed could be NaN #1630

merged 1 commit into from Mar 28, 2022

Conversation

BartS23
Copy link
Contributor

@BartS23 BartS23 commented Mar 27, 2022

If you start the run before the first GPS fix, Speed may be NaN when the first fix occurs.

then curSpeed during the entire run is NaN
@gfwilliams gfwilliams merged commit 91f5987 into espruino:master Mar 28, 2022
@gfwilliams
Copy link
Member

Thanks!

@gfwilliams
Copy link
Member

Looks like this was probably made worse by this PR from friday (#1619) since GPS always seems to report a value for speed even when there's no fix. To trigger otherwise I guess you'd have to start the app and click the button within 1 second

@BartS23 BartS23 deleted the run2 branch March 28, 2022 09:26
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

2 participants