Update based on review comments

This commit is contained in:
Jeff Epler 2024-09-13 14:44:11 -05:00
parent 3159513f9b
commit bdc9fe8277

View file

@ -97,7 +97,7 @@ class Program: # pylint: disable=too-few-public-methods
if low <= result < high: if low <= result < high:
return result return result
raise RuntimeError( 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): def parse_rxfifo_brackets(arg, fifo_dir):
@ -169,9 +169,7 @@ class Program: # pylint: disable=too-few-public-methods
require_version(required_version, line) require_version(required_version, line)
elif words[0] == ".out": elif words[0] == ".out":
require_before_instruction() require_before_instruction()
out_count = int_in_range( out_count = int_in_range(words[1], 1, 33, ".out count")
words[1], 32 if pio_version == 0 else 1, 33, ".out count"
)
auto_pull = False auto_pull = False
idx = 2 idx = 2