Skip to content

Commit 2e555fb

Browse files
committed
fix error message when flashing firmware
We missed a check for MPY ABI v6 compatibility.
1 parent a6ccf2d commit 2e555fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firmware/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function* loadFirmware(
196196
program = yield* call(() => reader.readMainPy());
197197
}
198198

199-
if (metadata['mpy-abi-version'] !== 5) {
199+
if (![5, 6].includes(metadata['mpy-abi-version'])) {
200200
yield* put(
201201
didFailToFinish(
202202
FailToFinishReasonType.BadMetadata,

0 commit comments

Comments
 (0)