mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Removed as per @ledvinap suggestion
This commit is contained in:
parent
e8c4ef83d9
commit
c1af6cf96b
1 changed files with 3 additions and 3 deletions
|
@ -157,11 +157,11 @@ bool IORead(IO_t io)
|
|||
if (!io)
|
||||
return false;
|
||||
#if defined(USE_LOWLEVEL_DRIVER)
|
||||
return !! (LL_GPIO_ReadInputPort(IO_GPIO(io)) & IO_Pin(io));
|
||||
return (LL_GPIO_ReadInputPort(IO_GPIO(io)) & IO_Pin(io));
|
||||
#elif defined(USE_HAL_DRIVER)
|
||||
return !! HAL_GPIO_ReadPin(IO_GPIO(io), IO_Pin(io));
|
||||
return HAL_GPIO_ReadPin(IO_GPIO(io), IO_Pin(io));
|
||||
#else
|
||||
return !! (IO_GPIO(io)->IDR & IO_Pin(io));
|
||||
return (IO_GPIO(io)->IDR & IO_Pin(io));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue