Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Sep 5, 2024
1 parent c73bbc1 commit b3884b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _normalize_define(define_string):
define, value = define_string.split("=", maxsplit=1)
if any(char in value for char in (' ', '<', '>')):
value = f'"{value}"'
elif any(char in value for char in ('"', '\'')):
elif '"' in value and not value.startswith("\\"):
value = value.replace('"', '\\"')
return (define, value)
return define_string
Expand Down

0 comments on commit b3884b1

Please sign in to comment.