Merge pull request #2132 from evhan55/bugfix/2127

Make Boost set motor speed opcode yield for send interval duration
This commit is contained in:
Evelyn Eastmond 2019-04-22 12:29:46 -04:00 committed by GitHub
commit 0f592519d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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