Skip to content

Commit bdc9fe8

Browse files
committed
Update based on review comments
1 parent 3159513 commit bdc9fe8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adafruit_pioasm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def int_in_range(arg, low, high, what, radix=0):
9797
if low <= result < high:
9898
return result
9999
raise RuntimeError(
100-
f"{what} must be at least {low} and no greater than {high}, got {result}"
100+
f"{what} must be at least {low} and less than {high}, got {result}"
101101
)
102102

103103
def parse_rxfifo_brackets(arg, fifo_dir):
@@ -169,9 +169,7 @@ def parse_rxfifo_brackets(arg, fifo_dir):
169169
require_version(required_version, line)
170170
elif words[0] == ".out":
171171
require_before_instruction()
172-
out_count = int_in_range(
173-
words[1], 32 if pio_version == 0 else 1, 33, ".out count"
174-
)
172+
out_count = int_in_range(words[1], 1, 33, ".out count")
175173
auto_pull = False
176174

177175
idx = 2

0 commit comments

Comments
 (0)