Only render when no fix

pull/2503/head
Marco H 2023-01-15 17:09:09 +01:00
parent ab1da4278b
commit 2551f02f2f
1 changed files with 3 additions and 4 deletions

View File

@ -114,12 +114,8 @@ function onGPS(fix) {
layout.time.label = "Time: "+formatTime(fix.time);
layout.sat.label = "Satellites: "+satellites;
layout.maidenhead.label = "Maidenhead: "+maidenhead;
layout.dataCounter.label = dataCounter;
layout.render();
} else {
layout.clear(layout.dataCounter);
layout.dataCounter.label = dataCounter;
layout.render(layout.dataCounter);
if (fix.satelites != lastFix.satelites) {
layout.clear(layout.sat);
layout.sat.label = fix.satellites;
@ -133,6 +129,9 @@ function onGPS(fix) {
// console.log("in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL);
layout.render(layout.progress);
}
layout.clear(layout.dataCounter);
layout.dataCounter.label = dataCounter;
layout.render(layout.dataCounter);
}
if (listenerGPSraw == 0 && !fix.fix) {