mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Merge pull request #2132 from evhan55/bugfix/2127
Make Boost set motor speed opcode yield for send interval duration
This commit is contained in:
commit
0f592519d6
1 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue