Skip to content

Commit

Permalink
Increase limit for GPIO number -- outlying
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet authored Mar 9, 2024
2 parents f83c8c1 + 72b43f5 commit 8ae4201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/MotionSensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

def gpio_check(x):
x = int(x)
if x < 1 or x > 21:
raise argparse.ArgumentTypeError("GPIO must be between 1 and 21")
if x < 1 or x > 29:
raise argparse.ArgumentTypeError("GPIO must be between 1 and 29")
return x

parser.add_argument("-g", "--gpio", help="Define GPIO", type=gpio_check, required=True)
Expand Down

0 comments on commit 8ae4201

Please sign in to comment.