drivers: gpio: fix bug with Px15 pins
Fix condition in pin number check so that PA15, PB15, etc. can be properly accessed.. Co-authored-by: Денис <baden.i.ua@gmail.com> Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
274bd59283
commit
003f145314
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ static int gpio_numaker_configure(const struct device *dev, gpio_pin_t pin, gpio
|
|||
ARG_UNUSED(data);
|
||||
|
||||
/* Check for an invalid pin number */
|
||||
if (pin >= 15) {
|
||||
if (pin > 15) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue