From 11dddf459b914198df660e6b1e0aba365f0f41a8 Mon Sep 17 00:00:00 2001 From: HouzuoGuo Date: Sun, 3 Jan 2021 13:09:40 +0200 Subject: [PATCH] Fix incorrect prefix W/E that was displayed along with longitude --- src/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index 4ccb1b7e..3b7bb01b 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -400,7 +400,7 @@ void dp_drawPage(time_t t, bool nextpage) { gps.location.lat()); // line 6-7: GPS longitude - dp_printf("%c%07.4f", gps.location.rawLat().negative ? 'W' : 'E', + dp_printf("%c%07.4f", gps.location.rawLng().negative ? 'W' : 'E', gps.location.lng()); } else {