From 6fc4dbd19b0b5d0f39e568b3795bf84d64d8fd63 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 3 Jun 2024 22:09:28 +0200 Subject: [PATCH] [] waypointe editor: attempt to fix marking. --- apps/waypoints/waypoints.app.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/waypoints/waypoints.app.js b/apps/waypoints/waypoints.app.js index 0c63e9183f0..b8f2396570e 100644 --- a/apps/waypoints/waypoints.app.js +++ b/apps/waypoints/waypoints.app.js @@ -47,7 +47,7 @@ function mainMenu() { } function updateGps() { - let lat = "lat", lon = "lon", alt = "alt", speed = "speed"; + let pos = "lat/lon", alt = "alt", speed = "speed"; if (cancel_gps) return; @@ -56,8 +56,7 @@ function updateGps() { speed = "no fix for " + (getTime() - gps_start).toFixed(0) + "s"; if (fix && fix.fix && fix.lat) { - lat = "" + lat(fix.lat); - lon = "" + lon(fix.lon); + pos = "" + lat(fix.lat) + " " + lon(fix.lon); alt = "alt " + fix.alt.toFixed(0) + "m"; speed = "speed " + fix.speed.toFixed(1) + "kt"; } @@ -67,8 +66,7 @@ function updateGps() { .fillRect(0, 0, 176, 120) .setColor(0,0,0) .drawString(key, 0, 0) - .drawString(lat, 0, 20) - .drawString(lon, 0, 40) + .drawString(pos, 0, 20) .drawString(alt, 0, 60) .drawString(speed, 0, 80);