add delay to fix mac deployment (#929)

This commit is contained in:
Peli de Halleux
2019-09-30 13:43:12 -07:00
committed by GitHub
parent ad3652c290
commit 4c9c7d6a69
2 changed files with 3 additions and 1 deletions

View File

@ -309,6 +309,7 @@ export function deployCoreAsync(resp: pxtc.CompileResult) {
.then(() => w.flashAsync(elfPath, UF2.readBytes(origElfUF2, 0, origElfUF2.length * 256)))
.then(() => w.flashAsync(rbfPath, rbfBIN))
.then(() => w.runAsync(rbfPath))
.then(() => Promise.delay(500))
.then(() => {
pxt.tickEvent("webserial.success");
return w.disconnectAsync()