Fixes #2577: order of displayed GPS coordinates changed according to ISO 6709 (latitude before longitude) (#3878)

This commit is contained in:
Damjan Adamic
2016-10-08 09:39:46 +02:00
committed by Bertrand Songis
parent c4a1dc4c70
commit 7509146a8f
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -877,12 +877,12 @@ void drawGPSSensorValue(coord_t x, coord_t y, TelemetryItem & telemetryItem, Lcd
if (att & DBLSIZE) {
x -= (g_eeGeneral.gpsFormat == 0 ? 54 : 51);
att &= ~0x0F00; // TODO constant
drawGPSCoord(x, y, telemetryItem.gps.longitude, "EW", att, true);
drawGPSCoord(x, y+FH, telemetryItem.gps.latitude, "NS", att, true);
drawGPSCoord(x, y, telemetryItem.gps.latitude, "NS", att, true);
drawGPSCoord(x, y+FH, telemetryItem.gps.longitude, "EW", att, true);
}
else {
drawGPSCoord(x, y, telemetryItem.gps.longitude, "EW", att, false);
drawGPSCoord(lcdNextPos+FWNUM, y, telemetryItem.gps.latitude, "NS", att, false);
drawGPSCoord(x, y, telemetryItem.gps.latitude, "NS", att, false);
drawGPSCoord(lcdNextPos+FWNUM, y, telemetryItem.gps.longitude, "EW", att, false);
}
}