Skip to content

Commit 721f754

Browse files
authored
Update assemble.py
allow variables to be initialized with hex and binary values, not just integers
1 parent f77a321 commit 721f754

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).to_bytes(wordlen, 'little') for arg in args]
249+
data = [int(arg, 0).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)