Remove some debug logging

This commit is contained in:
Isaac Connor 2021-06-13 18:20:57 -04:00
parent fa11c20bf8
commit 821031f10e
1 changed files with 4 additions and 5 deletions

View File

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