mirror of https://github.com/espruino/BangleApps
turned off debugging in kitchen combo
parent
7be55db00e
commit
cd5d5cd3f5
|
@ -491,7 +491,7 @@ function STOPWATCH() {
|
|||
}
|
||||
|
||||
STOPWATCH.prototype.log_debug = function(o) {
|
||||
console.log(o);
|
||||
//console.log(o);
|
||||
}
|
||||
|
||||
STOPWATCH.prototype.timeToText = function(t) {
|
||||
|
@ -511,10 +511,6 @@ STOPWATCH.prototype.getLapTimesArray = function() {
|
|||
|
||||
STOPWATCH.prototype.stopStart = function() {
|
||||
this.log_debug("stopStart()");
|
||||
|
||||
// if (this.running)
|
||||
// this.stopTimer();
|
||||
|
||||
this.running = !this.running;
|
||||
|
||||
if (this.running)
|
||||
|
@ -525,14 +521,6 @@ STOPWATCH.prototype.stopStart = function() {
|
|||
this.redrawButtons = true;
|
||||
this.redrawLaps = true;
|
||||
|
||||
/*
|
||||
if (this.running) {
|
||||
this.startTimer();
|
||||
} else {
|
||||
this.draw();
|
||||
}
|
||||
*/
|
||||
|
||||
this.draw();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
function getFace(){
|
||||
let swObject = undefined;
|
||||
|
||||
function log_debug(o) {
|
||||
//console.log(o);
|
||||
}
|
||||
|
||||
function init(gps, sw) {
|
||||
showMem("swatch init 1");
|
||||
swObject = sw;
|
||||
|
@ -18,16 +22,16 @@
|
|||
function showMem(msg) {
|
||||
var val = process.memory();
|
||||
var str = msg + " " + Math.round(val.usage*100/val.total) + "%";
|
||||
console.log(str);
|
||||
log_debug(str);
|
||||
}
|
||||
|
||||
function startTimer() {
|
||||
console.log("swObject.startTimer()");
|
||||
log_debug("swObject.startTimer()");
|
||||
swObject.startTimer();
|
||||
}
|
||||
|
||||
function stopTimer() {
|
||||
console.log("swObject.stopTimer()");
|
||||
log_debug("swObject.stopTimer()");
|
||||
swObject.stopTimer();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue