Motor for time opcodes return promise to wait

This commit is contained in:
Eric Rosenbaum 2018-07-02 18:09:51 -04:00 committed by Ray Schamp
parent a78866f99a
commit b30092e890

View file

@ -839,16 +839,14 @@ class Scratch3Ev3Blocks {
const port = Cast.toNumber(args.PORT);
const time = Cast.toNumber(args.TIME) * 1000;
this._device.motorTurnClockwise(port, time);
return;
return this._device.motorTurnClockwise(port, time);
}
motorTurnCounterClockwise (args) {
const port = Cast.toNumber(args.PORT);
const time = Cast.toNumber(args.TIME) * 1000;
this._device.motorTurnCounterClockwise(port, time);
return;
return this._device.motorTurnCounterClockwise(port, time);
}
motorRotate (args) {