Merge pull request #145 from juribeparada/master

Fix mistake reading COS input pin using STM32F4 and STM32F7
nxdn
Jonathan Naylor 2018-02-05 14:12:11 +00:00 committed by GitHub
commit 9e6a4ca6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -855,7 +855,7 @@ void CIO::interrupt()
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)