clkinfogps: disable more debug

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