You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in this commit.
I've searched, and I think this is one of a kind...
A couple of examples weren't using nanoseconds correctly (nanoseconds can be negative) so I've corrected those too, but that's a different issue.
If the lat_frac has leading zeros, they are dropped, leading to the incorrect value being printed:
I know examples 10 and 11 are effected but there may be others:
One solution is to use printf
Serial.printf("%d.%07d\n", lat_int, lat_frac); // Print the integer part of the latitude
But I know its support is iffy. We might have to break down and just write a silly helper function inside these examples.
The text was updated successfully, but these errors were encountered: