Remove some debug logging

This commit is contained in:
Isaac Connor 2021-06-13 18:20:57 -04:00
parent 6d9c582e13
commit 17ec2f922e
1 changed files with 4 additions and 5 deletions

View File

@ -275,17 +275,16 @@ function timerFire() {
clearInterval(timerObj); clearInterval(timerObj);
timerObj = null; timerObj = null;
timerInterval = currentDisplayInterval; timerInterval = currentDisplayInterval;
console.log("Turn off nterrupts timerInterfave" + timerInterval); console.log("Turn off interrupts timerInterfave" + timerInterval);
} }
if ( (currentSpeed > 0 || liveMode != 0) && ! timerObj ) { if ( (currentSpeed > 0 || liveMode != 0) && ! timerObj ) {
timerObj = setInterval(timerFire, timerInterval); // don't fire out of live mode if speed is zero timerObj = setInterval(timerFire, timerInterval); // don't fire out of live mode if speed is zero
} }
if ( liveMode ) { if (liveMode) {
console.log("liveMode");
outputUpdate(currentTimeSecs); // In live mode we basically do nothing but redisplay outputUpdate(currentTimeSecs); // In live mode we basically do nothing but redisplay
} else if ( currentTimeSecs + playSecsPerInterval >= maxTimeSecs ) { } else if (currentTimeSecs + playSecsPerInterval >= maxTimeSecs) {
// beyond the end just stop // beyond the end just stop
console.log("Current time " + currentTimeSecs + " + " + playSecsPerInterval + " >= " + maxTimeSecs + " so stopping"); console.log("Current time " + currentTimeSecs + " + " + playSecsPerInterval + " >= " + maxTimeSecs + " so stopping");
setSpeed(0); setSpeed(0);
@ -637,7 +636,7 @@ function showSpeed(val) {
} }
function setSpeed(speed_index) { function setSpeed(speed_index) {
if ( liveMode == 1 ) { if (liveMode == 1) {
console.log("setSpeed in liveMode?"); console.log("setSpeed in liveMode?");
return; // we shouldn't actually get here but just in case return; // we shouldn't actually get here but just in case
} }