From 4a3264b5bfe5adaab913e2d987193dc91d3ea3b3 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 27 Jul 2015 08:18:34 +0000 Subject: STM32L0xx ADC now working. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8111 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32L0xx/ADC/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testhal/STM32') diff --git a/testhal/STM32/STM32L0xx/ADC/main.c b/testhal/STM32/STM32L0xx/ADC/main.c index 6c2020646..4cb541966 100644 --- a/testhal/STM32/STM32L0xx/ADC/main.c +++ b/testhal/STM32/STM32L0xx/ADC/main.c @@ -145,7 +145,7 @@ int main(void) { * Normal main() thread activity, in this demo it does nothing. */ while (true) { - if (palReadPad(GPIOC, GPIOC_BUTTON)) { + if (!palReadPad(GPIOC, GPIOC_BUTTON)) { adcStopConversion(&ADCD1); adcSTM32SetCCR(0); } -- cgit v1.2.3