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