-
Notifications
You must be signed in to change notification settings - Fork 60
Document that commands must be bytes; check on uses of ord() #15
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
Comments
The strings sent via |
Thanks, is the requirement that command has to be I suppose you need the |
Fixing the doc string is a good idea, and we'll check on the |
FWIW, this morning after a soft reboot of the M4, I got this when calling
No idea if this was the very first call to |
I see this frequently on start up -- I always assumed it was just starting in the middle of receiving a packet from the GPS and the decoding failed. I just restart... probably should handle it better. |
Of course it might easier and more robust just to catch the |
Fixed by #21 |
Uh oh!
There was an error while loading. Please reload this page.
Looks like the
GPS.send_command()
is missing a call toord()
in the checksum calculation loop. This means if you pass in a sting for command you get an exception (sorry don’t have it handy). Worked around by converting the arg tobytes
before passing in, but the example code on learn.adafruit.com passes the commands in as a string.Ran into this running a 3.x version on an M4 feather.
The text was updated successfully, but these errors were encountered: