Added support for accepting the original FileNode environment in a “callback” function when using Build Middlewares // Resolve #4380

This commit is contained in:
Ivan Kravets
2022-08-08 16:51:19 +03:00
parent 32d501bed1
commit 8c13d13f80
3 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ PlatformIO Core 6
6.1.4 (2022-??-??)
~~~~~~~~~~~~~~~~~~
* Added support for accepting the original FileNode environment in a "callback" function when using `Build Middlewares <https://docs.platformio.org/en/latest/scripting/middlewares.html>`__ (`pull #4380 <https://github.com/platformio/platformio-core/pull/4380>`_)
* Improved device port finder when using dual channel UART converter (`issue #4367 <https://github.com/platformio/platformio-core/issues/4367>`_)
* Improved project dependency resolving when using the `pio project init --ide <https://docs.platformio.org/en/latest/core/userguide/project/cmd_init.html>`__ command
* Upgraded build engine to the SCons 4.4.0 (`release notes <https://github.com/SCons/scons/releases/tag/4.4.0>`__)

2
docs

Submodule docs updated: 2175b369e2...f79c01f6f3

View File

@ -296,6 +296,8 @@ def CollectBuildFiles(
new_node = callback(env, new_node)
else:
new_node = callback(new_node)
if not new_node:
break
if new_node:
new_sources.append(new_node)