From 2e555fb9fca479e7865479f325c084e8989b7e8c Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 6 Jul 2022 15:05:06 -0500 Subject: [PATCH] fix error message when flashing firmware We missed a check for MPY ABI v6 compatibility. --- src/firmware/sagas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firmware/sagas.ts b/src/firmware/sagas.ts index 1bf6898f6..878e047c2 100644 --- a/src/firmware/sagas.ts +++ b/src/firmware/sagas.ts @@ -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,