Skip to content

Commit

Permalink
Fixed an issue when escaping macros/defines for IDE integration // Re…
Browse files Browse the repository at this point in the history
…solve #4360
  • Loading branch information
ivankravets committed Jul 29, 2022
1 parent 699da0a commit 9ddf73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ PlatformIO Core 6
~~~~~~~~~~~~~~~~~~

* Improved project dependency resolving when using the `pio project init --ide <https://docs.platformio.org/en/latest/core/userguide/project/cmd_init.html>`__ command
* Fixed an issue when escaping macros/defines for IDE integration (`issue #4360 <https://github.com/platformio/platformio-core/issues/4360>`_)

6.1.3 (2022-07-18)
~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion platformio/builder/tools/piointegration.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def dump_defines(env):
for item in SCons.Defaults.processDefines(env.get("CPPDEFINES", [])):
item = item.strip()
if item:
defines.append(env.subst(item).replace("\\", ""))
defines.append(env.subst(item).replace('\\"', '"'))

# special symbol for Atmel AVR MCU
if env["PIOPLATFORM"] == "atmelavr":
Expand Down

0 comments on commit 9ddf73b

Please sign in to comment.