mirror of https://github.com/espruino/BangleApps
Only render when no fix
parent
ab1da4278b
commit
2551f02f2f
|
@ -114,12 +114,8 @@ function onGPS(fix) {
|
||||||
layout.time.label = "Time: "+formatTime(fix.time);
|
layout.time.label = "Time: "+formatTime(fix.time);
|
||||||
layout.sat.label = "Satellites: "+satellites;
|
layout.sat.label = "Satellites: "+satellites;
|
||||||
layout.maidenhead.label = "Maidenhead: "+maidenhead;
|
layout.maidenhead.label = "Maidenhead: "+maidenhead;
|
||||||
layout.dataCounter.label = dataCounter;
|
|
||||||
layout.render();
|
layout.render();
|
||||||
} else {
|
} else {
|
||||||
layout.clear(layout.dataCounter);
|
|
||||||
layout.dataCounter.label = dataCounter;
|
|
||||||
layout.render(layout.dataCounter);
|
|
||||||
if (fix.satelites != lastFix.satelites) {
|
if (fix.satelites != lastFix.satelites) {
|
||||||
layout.clear(layout.sat);
|
layout.clear(layout.sat);
|
||||||
layout.sat.label = fix.satellites;
|
layout.sat.label = fix.satellites;
|
||||||
|
@ -133,6 +129,9 @@ function onGPS(fix) {
|
||||||
// console.log("in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL);
|
// console.log("in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL);
|
||||||
layout.render(layout.progress);
|
layout.render(layout.progress);
|
||||||
}
|
}
|
||||||
|
layout.clear(layout.dataCounter);
|
||||||
|
layout.dataCounter.label = dataCounter;
|
||||||
|
layout.render(layout.dataCounter);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listenerGPSraw == 0 && !fix.fix) {
|
if (listenerGPSraw == 0 && !fix.fix) {
|
||||||
|
|
Loading…
Reference in New Issue