diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-01 09:11:17 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-01 09:11:17 +0000 |
commit | 527125f126fdff704288c50c8d11b078f96d5dd6 (patch) | |
tree | 63d22e7b05a37d182cff9684420a8dc3f9049b2b /testhal/STM32/UART/main.c | |
parent | b16d5b7da962a3519282d66a4350b88caaa45b76 (diff) | |
download | ChibiOS-527125f126fdff704288c50c8d11b078f96d5dd6.tar.gz ChibiOS-527125f126fdff704288c50c8d11b078f96d5dd6.tar.bz2 ChibiOS-527125f126fdff704288c50c8d11b078f96d5dd6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2109 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/UART/main.c')
-rw-r--r-- | testhal/STM32/UART/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testhal/STM32/UART/main.c b/testhal/STM32/UART/main.c index e111935d7..121a1f4cb 100644 --- a/testhal/STM32/UART/main.c +++ b/testhal/STM32/UART/main.c @@ -73,8 +73,9 @@ static void rxchar(uint16_t c) { /* Flashing the LED each time a character is received.*/
palClearPad(IOPORT3, GPIOC_LED);
chSysLockFromIsr();
- if (!chVTIsArmedI(&vt2))
- chVTSetI(&vt2, MS2ST(200), ledoff, NULL);
+ if (chVTIsArmedI(&vt2))
+ chVTResetI(&vt2);
+ chVTSetI(&vt2, MS2ST(200), ledoff, NULL);
chSysUnlockFromIsr();
}
|