From 12233b73dded09d64e0139df1b4ba4b7714c9f98 Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Sat, 27 Apr 2019 18:20:09 -0400 Subject: [PATCH] Fixing comments to reflect original code. --- src/extensions/scratch3_boost/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/extensions/scratch3_boost/index.js b/src/extensions/scratch3_boost/index.js index e6f60bda5..f6b8871ae 100644 --- a/src/extensions/scratch3_boost/index.js +++ b/src/extensions/scratch3_boost/index.js @@ -497,9 +497,7 @@ class BoostMotor { * @param {boolean} [resetState=true] - whether to reset the state of the motor when running this command. */ turnOnForever (resetState = true){ - /* if (this.power === 0) { - this.turnOff(false); - } */ + // if (this.power === 0) return; if (resetState) this.status = BoostMotorState.ON_FOREVER; this._turnOn(); @@ -511,9 +509,7 @@ class BoostMotor { * @param {boolean} [resetState=true] - whether to reset the state of the motor when running this command. */ turnOnFor (milliseconds, resetState = true) { - /* if (this.power === 0) { - this.turnOff(false); - } */ + // if (this.power === 0) return; milliseconds = Math.max(0, milliseconds); if (resetState) this.status = BoostMotorState.ON_FOR_TIME;