diff --git a/apps.json b/apps.json index 1187dd1bd..8f123e079 100644 --- a/apps.json +++ b/apps.json @@ -722,7 +722,7 @@ "id": "gpsinfo", "name": "GPS Info", "icon": "gps-info.png", - "version":"0.02", + "version":"0.03", "description": "An application that displays information about altitude, lat/lon, satellites and time", "tags": "gps", "type": "app", diff --git a/apps/gpsinfo/ChangeLog b/apps/gpsinfo/ChangeLog index 50d79e72d..90ace259c 100644 --- a/apps/gpsinfo/ChangeLog +++ b/apps/gpsinfo/ChangeLog @@ -1 +1,2 @@ 0.02: Ensure screen doesn't display garbage at startup +0.03: Show number of satellites while waiting for fix \ No newline at end of file diff --git a/apps/gpsinfo/gps-info.js b/apps/gpsinfo/gps-info.js index f7daf245a..836e3a71b 100644 --- a/apps/gpsinfo/gps-info.js +++ b/apps/gpsinfo/gps-info.js @@ -52,7 +52,11 @@ function onGPS(fix) { g.setFont("6x8", 2); g.drawString("Waiting for GPS", 120, 80); nofix = (nofix+1) % 4; - g.drawString(".".repeat(nofix) + " ".repeat(4-nofix), 120, 120) + g.drawString(".".repeat(nofix) + " ".repeat(4-nofix), 120, 120); + // Show number of satellites: + g.setFontAlign(0,0); + g.setFont("6x8"); + g.drawString(fix.satellites+" satellites", 120, 100); } g.flip(); }