Fix mistake reading COS input pin using STM32F4 and STM32F7

nxdn
Andy CA6JAU 2018-02-05 09:42:40 -03:00
parent e7b52023c6
commit 91e5d588b0
1 changed files with 1 additions and 1 deletions

View File

@ -855,7 +855,7 @@ void CIO::interrupt()
bool CIO::getCOSInt() bool CIO::getCOSInt()
{ {
return GPIO_ReadOutputDataBit(PORT_COS, PIN_COS) == Bit_SET; return GPIO_ReadInputDataBit(PORT_COS, PIN_COS) == Bit_SET;
} }
void CIO::setLEDInt(bool on) void CIO::setLEDInt(bool on)