1
0
Fork 0

Merge branch 'master' of github.com:espruino/BangleApps

master
Gordon Williams 2020-04-08 13:30:16 +01:00
commit 8747a4ba10
3 changed files with 7 additions and 2 deletions

View File

@ -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",

View File

@ -1 +1,2 @@
0.02: Ensure screen doesn't display garbage at startup
0.03: Show number of satellites while waiting for fix

View File

@ -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();
}