From 91e5d588b06cf9e8358a2fe1795f28e4f345c3bb Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Mon, 5 Feb 2018 09:42:40 -0300 Subject: [PATCH] Fix mistake reading COS input pin using STM32F4 and STM32F7 --- IOSTM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)