removed power wrongly being set in setMotorDirection()

This commit is contained in:
Kevin Andersen 2019-04-11 11:16:51 -04:00
parent ba2aaf90dd
commit c3908b5f2c

View file

@ -1813,7 +1813,6 @@ class Scratch3BoostBlocks {
}
// keep the motor on if it's running, and update the pending timeout if needed
if (motor) {
motor.power = MathUtil.clamp(Cast.toNumber(args.POWER), 0, 100);
switch (motor.status) {
case BoostMotorState.ON_FOREVER:
motor.turnOn();