Skip to content

Commit a153f6a

Browse files
authored
Sync with the latest changes to Arduino platform.txt
1 parent c8596cb commit a153f6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/platformio-build.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
CPPDEFINES=[
3939
("ARDUINO", 10805),
4040
"ARDUINO_ARCH_ESP32",
41+
("ARDUINO_VARIANT", '\\"%s\\"' % env.BoardConfig().get("build.variant").replace('"', "")),
4142
("ARDUINO_BOARD", '\\"%s\\"' % env.BoardConfig().get("name").replace('"', ""))
4243
],
4344

@@ -174,7 +175,7 @@ def _get_board_flash_mode(env):
174175
join(FRAMEWORK_DIR, "cores", env.BoardConfig().get("build.core"))
175176
))
176177

177-
env.Append(LIBS=libs)
178+
env.Prepend(LIBS=libs)
178179

179180
#
180181
# Generate partition table

0 commit comments

Comments
 (0)