-
Notifications
You must be signed in to change notification settings - Fork 220
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
nmea crashes when RMC values are blank #94
Comments
I think this should be managed by pynmea. Returning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I send a RMC to nmea that has lots of blank values and then I try to get the datatime back, an exception is thrown. The question I have, is should pynmea2 handle this, or is there code that I can call to check if it's valid before I call,
p.datetime
where p is the RMC instance. Since,datetime
is a derived attribute, should it have checks in there to determine if the timestamp in the record is valid or not? and if so, I don't know what to return,None
? Or is there a way for a user to check this before callingdatetime
?This is what my gps returns when it's doesn't have any signal (like when I'm testing my code in a building)...
'$GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48'
And I get this exception thrown:
The text was updated successfully, but these errors were encountered: