add c5 bootloader location to pioarduino script (#10889)

* add c5 bootloader location to pioarduino script

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
Jason2866 2025-01-22 14:50:05 +01:00 committed by me-no-dev
parent 100ed8e895
commit d9d3bf48d3

View file

@ -213,7 +213,11 @@ env.Append(
LIBSOURCE_DIRS=[join(FRAMEWORK_DIR, "libraries")],
FLASH_EXTRA_IMAGES=[
(
"0x1000" if build_mcu in ["esp32", "esp32s2"] else ("0x2000" if build_mcu in ["esp32p4"] else "0x0000"),
(
"0x1000"
if build_mcu in ["esp32", "esp32s2"]
else ("0x2000" if build_mcu in ["esp32p4", "esp32c5"] else "0x0000")
),
get_bootloader_image(variants_dir),
),
("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")),