From 34db42b46939959b1d1ea4c01443a3cb01bacdf6 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Thu, 27 Jul 2017 12:50:12 +0100 Subject: [PATCH] Remove UF2 file repetition --- editor/extension.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/extension.ts b/editor/extension.ts index 6c475c3a..e00cd2d4 100644 --- a/editor/extension.ts +++ b/editor/extension.ts @@ -72,8 +72,7 @@ namespace pxt.editor { let r = UF2.concatFiles([elfUF2, mkFile(".rbf", rbfBIN)]) let data = UF2.serializeFile(r) - // we repeat the file three times to minimze problems with failed writes - resp.outfiles[pxtc.BINARY_UF2] = btoa(data + data + data) + resp.outfiles[pxtc.BINARY_UF2] = btoa(data) let saveUF2Async = () => { if (isCli || !pxt.commands.saveOnlyAsync) {