1
0
Fork 0
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:
mjs1441 2025-06-18 20:48:31 +01:00 committed by GitHub
parent c56c350f29
commit 2c378e96a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;