diff options
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/buzzer.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/buzzer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/ARM7-LPC214x-GCC/buzzer.c b/demos/ARM7-LPC214x-GCC/buzzer.c index 4700bfb45..b0abf9657 100644 --- a/demos/ARM7-LPC214x-GCC/buzzer.c +++ b/demos/ARM7-LPC214x-GCC/buzzer.c @@ -69,7 +69,7 @@ void PlaySound(int freq, t_time duration) { chSysLock();
- if (bvt.vt_func) { // If a sound is already being played
+ if (chVTIsArmedI(&bvt)) { // If a sound is already being played
chVTResetI(&bvt); // then aborts it.
StopCounter(tc);
}
|