aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-07-27 08:18:34 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-07-27 08:18:34 +0000
commit4a3264b5bfe5adaab913e2d987193dc91d3ea3b3 (patch)
tree40d7bbba4310789b5c7afc294dd288f01b4220df /testhal/STM32
parent6425481eb9383061a876f73b41d4a3bfda939e94 (diff)
downloadChibiOS-4a3264b5bfe5adaab913e2d987193dc91d3ea3b3.tar.gz
ChibiOS-4a3264b5bfe5adaab913e2d987193dc91d3ea3b3.tar.bz2
ChibiOS-4a3264b5bfe5adaab913e2d987193dc91d3ea3b3.zip
STM32L0xx ADC now working.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8111 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/STM32L0xx/ADC/main.c2
1 files changed, 1 insertions, 1 deletions
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);
}