Skip to content

Conversation

@nseidle
Copy link
Member

@nseidle nseidle commented Mar 6, 2024

If the receiver has not yet achieved GNSS fix, binary messages such as BESTNAVB and RECTIMEB do not return an OK when started, resulting in a long (1.5s) timeout each time the message is started or restarted. This PR leaves that behavior in place, but if disableBinaryBeforeFix() is called during the GNSS setup, then any calls to getLatitude() or getYear() will trigger a BESTNAVB start, but immediately exit before the command is sent to avoid timeout blocking. Once a successful GGA NMEA message reports a 3D fix is achieved, BESTNAV and RECTIME will be started.

If NMEA GGA is not enabled, avoid using disableBinaryBeforeFix.

@nseidle nseidle merged commit 5434bf0 into main Mar 6, 2024
@nseidle nseidle deleted the avoidBinaryUntilLock branch March 6, 2024 16:24
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