Merge pull request #702 from HouzuoGuo/fix-gps-longitude

Fix incorrect prefix W/E that was displayed along with longitude
This commit is contained in:
Verkehrsrot 2021-01-03 13:47:25 +01:00 committed by GitHub
commit 42657329e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ void dp_drawPage(time_t t, bool nextpage) {
gps.location.lat()); gps.location.lat());
// line 6-7: GPS longitude // 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()); gps.location.lng());
} else { } else {