pxt-microbit 5.1.30 → 5.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/editor.js +16 -5
- package/built/hexcache/{7e3d83a634c43c9ffcfbaa7e4e0fdaa0bd56d8eeb5c8e1159fa4280bd6f2393f.hex → 96edf84d82a943dfeaf8eb875ebe2450269f35252929755be2403c8192dea82d.hex} +9648 -9658
- package/built/hexcache/{dcdc6ad325813425221be10a0a3a01cc2a1bedc81349cbc5e2330908cd7b82d7.hex → 9ea1973c7762e7aecdc31dadd748bc7388bec2467a2c209768755435de96c4ad.hex} +10223 -10233
- package/built/target.js +1 -1
- package/built/target.json +1 -1
- package/built/targetlight.json +1 -1
- package/built/theme.json +1 -1
- package/built/web/react-common-authcode.css +1 -1
- package/built/web/react-common-multiplayer.css +1 -1
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlreact-common-authcode.css +1 -1
- package/built/web/rtlreact-common-multiplayer.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/docs/extensions.md +4 -0
- package/docs/tours/editor-tour.md +6 -0
- package/package.json +2 -2
- package/pxtarget.json +8 -2
- package/targetconfig.json +2 -1
- /package/built/hexcache/{90a043ede557d6bcd7ed8cc81981423d585f2a35ae7aece873225bfd39fd4e0f.hex → 282178dff5d09bc8cff46b9f8e533eb93524dadf852327e64d964046add37c4a.hex} +0 -0
- /package/built/hexcache/{fe0a5660d2c5ff7a892a8ee5a19cf1de8778194633607826adde4a6b48ff3835.hex → 8f2625e2eca3b2d07c3b3c15e47e92ae7a5652aaa937806bf27061b622aa3cbd.hex} +0 -0
package/built/editor.js
CHANGED
|
@@ -3355,9 +3355,12 @@ class DAPWrapper {
|
|
|
3355
3355
|
this.cortexM = new DapJS.CortexM(this.dap);
|
|
3356
3356
|
}
|
|
3357
3357
|
get binName() {
|
|
3358
|
+
return `${this.devVariant}-${pxtc.BINARY_HEX}`;
|
|
3359
|
+
}
|
|
3360
|
+
get devVariant() {
|
|
3358
3361
|
if (this.usesCODAL === undefined)
|
|
3359
3362
|
console.warn('try to access codal information before it is computed');
|
|
3360
|
-
return
|
|
3363
|
+
return this.usesCODAL ? "mbcodal" : "mbdal";
|
|
3361
3364
|
}
|
|
3362
3365
|
unsupportedParts() {
|
|
3363
3366
|
if (this.usesCODAL === undefined)
|
|
@@ -3551,7 +3554,7 @@ class DAPWrapper {
|
|
|
3551
3554
|
pxt.tickEvent('hid.flash.full.error.open', { res: res[1] });
|
|
3552
3555
|
throw new Error(lf("Download failed, please try again"));
|
|
3553
3556
|
}
|
|
3554
|
-
const binFile =
|
|
3557
|
+
const binFile = this.getBinFile(resp);
|
|
3555
3558
|
log(`bin file ${this.binName} in ${Object.keys(resp.outfiles).join(', ')}, ${(binFile === null || binFile === void 0 ? void 0 : binFile.length) || -1}b`);
|
|
3556
3559
|
const hexUint8 = pxt.U.stringToUint8Array(binFile);
|
|
3557
3560
|
log(`hex ${(hexUint8 === null || hexUint8 === void 0 ? void 0 : hexUint8.byteLength) || -1}b, ~${(hexUint8.byteLength / chunkSize) | 0} chunks of ${chunkSize}b`);
|
|
@@ -3620,10 +3623,18 @@ class DAPWrapper {
|
|
|
3620
3623
|
return uicr;
|
|
3621
3624
|
});
|
|
3622
3625
|
}
|
|
3626
|
+
getBinFile(resp) {
|
|
3627
|
+
var _a;
|
|
3628
|
+
const multiVariantBinFile = resp.outfiles[this.binName];
|
|
3629
|
+
if (multiVariantBinFile)
|
|
3630
|
+
return multiVariantBinFile;
|
|
3631
|
+
const dvBin = ((_a = resp.builtVariants) === null || _a === void 0 ? void 0 : _a.find(el => el === this.devVariant)) && resp.outfiles[pxtc.BINARY_HEX];
|
|
3632
|
+
if (dvBin)
|
|
3633
|
+
return resp.outfiles[pxtc.BINARY_HEX];
|
|
3634
|
+
throw new Error(`unable to find ${this.binName} in outfiles ${Object.keys(resp.outfiles).join(', ')}`);
|
|
3635
|
+
}
|
|
3623
3636
|
computeFlashChecksum(resp) {
|
|
3624
|
-
const binFile =
|
|
3625
|
-
if (!binFile)
|
|
3626
|
-
throw new Error(`unable to find ${this.binName} in outfiles ${Object.keys(resp.outfiles).join(', ')}`);
|
|
3637
|
+
const binFile = this.getBinFile(resp);
|
|
3627
3638
|
return this.getFlashChecksumsAsync()
|
|
3628
3639
|
.then(checksums => {
|
|
3629
3640
|
log(`checksums ${pxt.Util.toHex(checksums)}`);
|