Add support for MPY ABI v6.

Pybricks firmware v3.2.0b2 has updated to MicroPython 1.19 which
includes breaking changes to the MPY binary file format.
This commit is contained in:
David Lechner
2022-07-06 12:51:01 -05:00
parent f06b7c0c2c
commit 90cd4865e8
15 changed files with 129 additions and 45 deletions
+2 -3
View File
@@ -392,10 +392,9 @@ const Editor: React.VFC = () => {
() => ({
id: 'pybricks.action.check',
label: i18n.translate(I18nId.Check),
// REVISIT: the compile options here might need to be changed - hopefully there is
// one setting that works for all hub types for cases where we aren't connected.
run: (e) => {
dispatch(compile(e.getValue(), []));
// for checking, use the most recent compiler
dispatch(compile(e.getValue(), 6, []));
},
keybindings: [monaco.KeyCode.F2],
}),