Skip to content

Commit

Permalink
fix error message when flashing firmware
Browse files Browse the repository at this point in the history
We missed a check for MPY ABI v6 compatibility.
  • Loading branch information
dlech committed Jul 6, 2022
1 parent a6ccf2d commit 2e555fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firmware/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function* loadFirmware(
program = yield* call(() => reader.readMainPy());
}

if (metadata['mpy-abi-version'] !== 5) {
if (![5, 6].includes(metadata['mpy-abi-version'])) {
yield* put(
didFailToFinish(
FailToFinishReasonType.BadMetadata,
Expand Down

0 comments on commit 2e555fb

Please sign in to comment.