diff options
author | James McKenzie <root@ka-ata-killa.panaceas.james.local> | 2023-02-18 18:48:42 +0000 |
---|---|---|
committer | James McKenzie <root@ka-ata-killa.panaceas.james.local> | 2023-02-18 18:48:42 +0000 |
commit | 6bc7601e8f6c83c8def86aa7ae7cf06f51593771 (patch) | |
tree | 9518dad41956f815f8049301b5a3ff8c59131e2f /app/display.c | |
parent | ae0195ab312388deb8466816375addc155eadad9 (diff) | |
download | clock-6bc7601e8f6c83c8def86aa7ae7cf06f51593771.tar.gz clock-6bc7601e8f6c83c8def86aa7ae7cf06f51593771.tar.bz2 clock-6bc7601e8f6c83c8def86aa7ae7cf06f51593771.zip |
Diffstat (limited to 'app/display.c')
-rw-r--r-- | app/display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/display.c b/app/display.c index 5c745b7..bf811d8 100644 --- a/app/display.c +++ b/app/display.c @@ -115,7 +115,7 @@ void display_dispatch (void) case 1: if (!have_lock) break; - snprintf (buf, sizeof (buf), "%.8f", gps_lat); + snprintf (buf, sizeof (buf), "%s", fd1 (gps_lat, 0, 1, 8)); buf[sizeof (buf) - 1] = 0; max7219_write_string (buf, 0, 2); break; @@ -123,7 +123,7 @@ void display_dispatch (void) case 2: if (!have_lock) break; - snprintf (buf, sizeof (buf), "%.8f", gps_lon); + snprintf (buf, sizeof (buf), "%s", fd1 (gps_lon, 0, 1, 8)); buf[sizeof (buf) - 1] = 0; max7219_write_string (buf, 0, 2); break; |