1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Vario now tested and ok on stock board (Thanks Gabriel for the bug tracking!)

This commit is contained in:
bsongis 2012-05-09 21:08:43 +00:00
parent d5d902d05e
commit d2413055e3

View file

@ -37,7 +37,7 @@
#if defined(PCBSTD)
#define SPEAKER_ON BUZZER_ON
#define SPEAKER_OFF BUZZER_OFF
#define SPEAKER_OFF toneFreq=0; BUZZER_OFF
#endif
//audio
@ -60,7 +60,7 @@ class audioQueue
void event(uint8_t e, uint8_t f=BEEP_DEFAULT_FREQ);
inline void driver() {
if (toneFreq && toneTimeLeft > 0) {
if (toneFreq) {
toneCounter += toneFreq;
if ((toneCounter & 0x80) == 0x80)
BUZZER_ON;