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 25618d8 commit e4f2740Copy full SHA for e4f2740
adafruit_pioasm.py
@@ -96,7 +96,7 @@ def assemble(text_program):
96
if not 0 <= polarity <= 1:
97
raise RuntimeError("Invalid polarity")
98
assembled[-1] |= polarity << 7
99
- assembled[-1] |= WAIT_SOURCES.index(instruction[2]) << 4
+ assembled[-1] |= WAIT_SOURCES.index(instruction[2]) << 5
100
num = int(instruction[3])
101
if not 0 <= num <= 31:
102
raise RuntimeError("Wait num out of range")
0 commit comments