diff --git a/IOSTM.cpp b/IOSTM.cpp index 3b2081c..932ba57 100644 --- a/IOSTM.cpp +++ b/IOSTM.cpp @@ -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)