File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,15 @@ def generate(self):
62
62
63
63
project_data ['tool_specific' ] = {}
64
64
project_data ['tool_specific' ].update (tool_specific )
65
- # armasm does not like floating numbers in macros, timestamp to int
66
65
i = 0
67
66
for macro in project_data ['common' ]['macros' ]:
67
+ # armasm does not like floating numbers in macros, timestamp to int
68
68
if macro .startswith ('MBED_BUILD_TIMESTAMP' ):
69
69
timestamp = macro [len ('MBED_BUILD_TIMESTAMP=' ):]
70
70
project_data ['common' ]['macros' ][i ] = 'MBED_BUILD_TIMESTAMP=' + str (int (float (timestamp )))
71
- break
71
+ # armasm does not even accept MACRO=string
72
+ if macro .startswith ('MBED_USERNAME' ):
73
+ project_data ['common' ]['macros' ].pop (i )
72
74
i += 1
73
75
project_data ['common' ]['macros' ].append ('__ASSERT_MSG' )
74
76
self .progen_gen_file ('uvision' , project_data )
You can’t perform that action at this time.
0 commit comments