reducing GPIO code duplication

This commit is contained in:
rusefillc 2023-05-24 10:57:09 -04:00
parent 69147c0d78
commit fb2e64a6be
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@ static int getPortIndex(ioportid_t port) {
if (port == GPIOH)
return 7;
#endif /* GPIOH */
#if defined(GPIOF)
#if defined(GPIOI)
if (port == GPIOI)
return 8;
#endif /* STM32_HAS_GPIOI */