We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e5e2a commit ac1cb99Copy full SHA for ac1cb99
adafruit_pioasm.py
@@ -105,7 +105,8 @@ def assemble(text_program):
105
if len(instruction) > 2:
106
try:
107
assembled[-1] |= CONDITIONS.index(instruction[1]) << 5
108
- raise SyntaxError(f"Invalid jmp condition {instruction[1]}")
+ except ValueError:
109
+ raise SyntaxError(f"Invalid jmp condition {instruction[1]}")
110
111
elif instruction[0] == "wait":
112
# instr delay p sr index
0 commit comments