Skip to content

Commit 55bee3f

Browse files
committed
fix an error while raising an invalid instruction error
1 parent 9861fd0 commit 55bee3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pioasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def assemble(text_program):
170170
raise RuntimeError("Set value out of range")
171171
assembled[-1] |= value
172172
else:
173-
raise RuntimeError("Unknown instruction:" + instruction)
173+
raise RuntimeError("Unknown instruction:" + instruction[0])
174174
assembled[-1] |= delay << 8
175175
# print(hex(assembled[-1]))
176176

0 commit comments

Comments
 (0)