diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARMCM3-STM32F103ZG/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/ARMCM3-STM32F103ZG/main.c b/demos/ARMCM3-STM32F103ZG/main.c index 7c66e1da4..5e1ac9863 100644 --- a/demos/ARMCM3-STM32F103ZG/main.c +++ b/demos/ARMCM3-STM32F103ZG/main.c @@ -75,7 +75,7 @@ int main(void) { * sleeping in a loop and check the button state.
*/
while (TRUE) {
- if (palReadPad(GPIOG, GPIOG_USER_BUTTON))
+ if (!palReadPad(GPIOG, GPIOG_USER_BUTTON))
TestThread(&SD1);
chThdSleepMilliseconds(500);
}
|