From bdc9fe8277de78758e204c40bc4d6d50318a389a Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Fri, 13 Sep 2024 14:44:11 -0500 Subject: [PATCH] Update based on review comments --- adafruit_pioasm.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/adafruit_pioasm.py b/adafruit_pioasm.py index 094504e..671a559 100644 --- a/adafruit_pioasm.py +++ b/adafruit_pioasm.py @@ -97,7 +97,7 @@ class Program: # pylint: disable=too-few-public-methods 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): @@ -169,9 +169,7 @@ class Program: # pylint: disable=too-few-public-methods 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