From b30092e890489c42933b873285f27e903a4d71d6 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 2 Jul 2018 18:09:51 -0400 Subject: [PATCH] Motor for time opcodes return promise to wait --- src/extensions/scratch3_ev3/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/extensions/scratch3_ev3/index.js b/src/extensions/scratch3_ev3/index.js index c387a169b..e5ea01660 100644 --- a/src/extensions/scratch3_ev3/index.js +++ b/src/extensions/scratch3_ev3/index.js @@ -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) {