Skip to content

Commit 41d954b

Browse files
committed
Extend macros with those found in MACROS.txt
Otherwise the supplied macros from the function arguments will be dropped.
1 parent d5eda52 commit 41d954b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ def get_macros(self, more_macros=None):
17651765
# backwards compatibility with old MACROS.txt file
17661766
if os.path.isfile('MACROS.txt'):
17671767
with open('MACROS.txt') as f:
1768-
macros = f.read().splitlines()
1768+
macros.extend(f.read().splitlines())
17691769
return macros
17701770

17711771

0 commit comments

Comments
 (0)