mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-29 05:17:33 +00:00
Minor adjustments
This commit is contained in:
@@ -49,8 +49,8 @@ namespace sta
|
||||
if (pin & ioPos)
|
||||
{
|
||||
// Check input mode
|
||||
uint32_t mode = (gpioPin.getPort()->MODER >> (2U * i)) & GPIO_MODE;
|
||||
if (mode != MODE_INPUT)
|
||||
uint32_t mode = 3;//(gpioPin.getPort()->ODR >> (2U * i)) & IS_GPIO_MODE;
|
||||
if (mode != GPIO_MODE_INPUT)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user