mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
CLI allow for DEFIO_PORT_PINS pins per port. (#14460)
This commit is contained in:
parent
c56c350f29
commit
2c378e96a0
1 changed files with 1 additions and 1 deletions
|
@ -5307,7 +5307,7 @@ static bool strToPin(char *ptr, ioTag_t *tag)
|
|||
|
||||
char *end;
|
||||
const long pin = strtol(ptr, &end, 10);
|
||||
if (end != ptr && pin >= 0 && pin < 16) {
|
||||
if (end != ptr && pin >= 0 && pin < DEFIO_PORT_PINS) {
|
||||
*tag = DEFIO_TAG_MAKE(port, pin);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue