Skip to content

Commit f70126c

Browse files
authored
My fix for "; comment only lines"
This should fix #4 but there might be a better way.
1 parent 9fa2cc9 commit f70126c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_pioasm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def assemble(text_program):
6060
assembled = []
6161
for instruction in instructions:
6262
print(instruction)
63+
if len(instruction) == 0:
64+
continue
6365
instruction = instruction.split()
6466
delay = 0
6567
if instruction[-1].endswith("]"): # Delay

0 commit comments

Comments
 (0)