clkinfogps: disable more debug

pull/2713/head
Hugh Barney 2023-04-29 10:49:14 +01:00
parent c6fc025fd0
commit a7cf5e70bc
1 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@
};
var onGPS = function(fix) {
//console.log(fix);
debug(fix);
last_fix.time = fix.time;
// we got a fix
@ -100,20 +100,20 @@
text: gpsText()
}); },
run : function() {
console.log("run");
debug("run");
// if the timer is already runnuing reset it, we can get multiple run calls by tapping
clearTimer();
Bangle.setGPSPower(1,"clkinfo");
},
show: function () {
console.log("show");
debug("show");
resetLastFix();
fixTs = Math.round(getTime());
Bangle.on("GPS",onGPS);
this.run();
},
hide: function() {
console.log("hide");
debug("hide");
clearTimer();
Bangle.setGPSPower(0,"clkinfo");
Bangle.removeListener("GPS", onGPS);