From 26e6d25325836534bd7e505ebf92a2315a44841b Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Mon, 22 Apr 2019 11:59:02 -0400 Subject: [PATCH] Make set motor speed opcode yield for send interval duration. --- src/extensions/scratch3_boost/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/extensions/scratch3_boost/index.js b/src/extensions/scratch3_boost/index.js index 89e103f54..326198190 100644 --- a/src/extensions/scratch3_boost/index.js +++ b/src/extensions/scratch3_boost/index.js @@ -1804,7 +1804,11 @@ class Scratch3BoostBlocks { } } }); - return Promise.resolve(); + return new Promise(resolve => { + window.setTimeout(() => { + resolve(); + }, BoostBLE.sendInterval); + }); } /**