Skip to content

Commit 84c0126

Browse files
committed
Refactor CPPDEFINES to tuple style
1 parent 6c96e99 commit 84c0126

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builder/frameworks/arduino.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
env.Prepend(
3838
CPPDEFINES=[
39-
"ARDUINO=%s" % FRAMEWORK_VERSION.split(".")[1],
39+
("ARDUINO", int(FRAMEWORK_VERSION.split(".")[1])),
4040
"LWIP_OPEN_SRC"
4141
],
4242
CPPPATH=[

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _get_board_f_flash(env):
8888
],
8989

9090
CPPDEFINES=[
91-
"F_CPU=$BOARD_F_CPU",
91+
("F_CPU", "$BOARD_F_CPU"),
9292
"__ets__",
9393
"ICACHE_FLASH"
9494
],

0 commit comments

Comments
 (0)