mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
Pin the scalar shape for the honored board_build options; note the dispatch coupling
The schema permits the list form, so the routing now stores the last value (like a later platformio.ini line) and the generator always sees a scalar. The using_native_toolchain docstring points at write_cpp_file's dispatch so NATIVE_TOOLCHAINS membership and the project-writing branch flip together.
This commit is contained in:
@@ -1408,7 +1408,9 @@ async def test_add_platformio_options_native_arduino(
|
||||
await config._add_platformio_options(
|
||||
{
|
||||
"board_build.f_cpu": "160000000L",
|
||||
"board_build.ldscript": "eagle.flash.4m2m.ld",
|
||||
# The schema also permits the list form; the last value wins
|
||||
# and reaches the generator as a scalar
|
||||
"board_build.ldscript": ["eagle.flash.2m.ld", "eagle.flash.4m2m.ld"],
|
||||
"board_build.filesystem": "littlefs",
|
||||
"upload_speed": "115200",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user