[core] Migrate to UF2 OTA format version 2

This commit is contained in:
Kuba Szczodrzyński
2023-03-09 11:46:40 +01:00
parent 046f7df7d1
commit 65cf460691
5 changed files with 94 additions and 74 deletions

View File

@@ -94,7 +94,7 @@ class LibretuyaPlatform(PlatformBase):
def configure_default_packages(self, options, targets):
from ltchiptool.util.dict import RecursiveDict
pioframework = options.get("pioframework")
pioframework = options.get("pioframework") or ["base"]
if not pioframework:
return
framework: str = pioframework[0]
@@ -121,7 +121,6 @@ class LibretuyaPlatform(PlatformBase):
fg="red",
)
exit(1)
options.get("pioframework")[0] = framework
# make ArduinoCore-API required
if framework == "arduino":