Skip to content

Commit bf320af

Browse files
authored
Update assemble.py
Using eval_args instead for better compatibility when using expressions
1 parent 721f754 commit bf320af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32_ulp/assemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def d_global(self, symbol):
246246
self.symbols.set_global(symbol)
247247

248248
def append_data(self, wordlen, args):
249-
data = [int(arg, 0).to_bytes(wordlen, 'little') for arg in args]
249+
data = [int(self.opcodes.eval_arg(arg)).to_bytes(wordlen, 'little') for arg in args]
250250
self.append_section(b''.join(data))
251251

252252
def d_byte(self, *args):

0 commit comments

Comments
 (0)