Merge pull request #145 from juribeparada/master

Fix mistake reading COS input pin using STM32F4 and STM32F7
This commit is contained in:
Jonathan Naylor
2018-02-05 14:12:11 +00:00
committed by GitHub
+1 -1
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)