aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L0xx
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32L0xx')
-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);
}