Remove UF2 file repetition
This commit is contained in:
parent
3edceb248d
commit
34db42b469
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user