Skip to content

Examples display incorrect fractional lat/long #19

Closed
@nseidle

Description

@nseidle

If the lat_frac has leading zeros, they are dropped, leading to the incorrect value being printed:

image

I know examples 10 and 11 are effected but there may be others:

image

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions