diff --git a/apps/kitchen/kitchen.app.js b/apps/kitchen/kitchen.app.js index 1bc666426..5f2c4c046 100644 --- a/apps/kitchen/kitchen.app.js +++ b/apps/kitchen/kitchen.app.js @@ -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(); } diff --git a/apps/kitchen/swatch.kit.js b/apps/kitchen/swatch.kit.js index 0e910949d..9f12b0af7 100644 --- a/apps/kitchen/swatch.kit.js +++ b/apps/kitchen/swatch.kit.js @@ -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(); }