Make set motor speed opcode yield for send interval duration.

This commit is contained in:
Evelyn Eastmond 2019-04-22 11:59:02 -04:00
parent 9135780c55
commit 26e6d25325

View file

@ -1804,7 +1804,11 @@ class Scratch3BoostBlocks {
} }
} }
}); });
return Promise.resolve(); return new Promise(resolve => {
window.setTimeout(() => {
resolve();
}, BoostBLE.sendInterval);
});
} }
/** /**