Skip to content

Commit

Permalink
Update based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Sep 13, 2024
1 parent 3159513 commit bdc9fe8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions adafruit_pioasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def int_in_range(arg, low, high, what, radix=0):
if low <= result < high:
return result
raise RuntimeError(
f"{what} must be at least {low} and no greater than {high}, got {result}"
f"{what} must be at least {low} and less than {high}, got {result}"
)

def parse_rxfifo_brackets(arg, fifo_dir):
Expand Down Expand Up @@ -169,9 +169,7 @@ def parse_rxfifo_brackets(arg, fifo_dir):
require_version(required_version, line)
elif words[0] == ".out":
require_before_instruction()
out_count = int_in_range(
words[1], 32 if pio_version == 0 else 1, 33, ".out count"
)
out_count = int_in_range(words[1], 1, 33, ".out count")
auto_pull = False

idx = 2
Expand Down

0 comments on commit bdc9fe8

Please sign in to comment.