Remove UF2 file repetition

This commit is contained in:
Michal Moskal 2017-07-27 12:50:12 +01:00
parent 3edceb248d
commit 34db42b469

View File

@ -72,8 +72,7 @@ namespace pxt.editor {
let r = UF2.concatFiles([elfUF2, mkFile(".rbf", rbfBIN)]) let r = UF2.concatFiles([elfUF2, mkFile(".rbf", rbfBIN)])
let data = UF2.serializeFile(r) let data = UF2.serializeFile(r)
// we repeat the file three times to minimze problems with failed writes resp.outfiles[pxtc.BINARY_UF2] = btoa(data)
resp.outfiles[pxtc.BINARY_UF2] = btoa(data + data + data)
let saveUF2Async = () => { let saveUF2Async = () => {
if (isCli || !pxt.commands.saveOnlyAsync) { if (isCli || !pxt.commands.saveOnlyAsync) {