mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Make set motor speed opcode yield for send interval duration.
This commit is contained in:
parent
9135780c55
commit
26e6d25325
1 changed files with 5 additions and 1 deletions
|
@ -1804,7 +1804,11 @@ class Scratch3BoostBlocks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return Promise.resolve();
|
return new Promise(resolve => {
|
||||||
|
window.setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, BoostBLE.sendInterval);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue