mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Vario now tested and ok on stock board (Thanks Gabriel for the bug tracking!)
This commit is contained in:
parent
d5d902d05e
commit
d2413055e3
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#if defined(PCBSTD)
|
#if defined(PCBSTD)
|
||||||
#define SPEAKER_ON BUZZER_ON
|
#define SPEAKER_ON BUZZER_ON
|
||||||
#define SPEAKER_OFF BUZZER_OFF
|
#define SPEAKER_OFF toneFreq=0; BUZZER_OFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//audio
|
//audio
|
||||||
|
@ -60,7 +60,7 @@ class audioQueue
|
||||||
void event(uint8_t e, uint8_t f=BEEP_DEFAULT_FREQ);
|
void event(uint8_t e, uint8_t f=BEEP_DEFAULT_FREQ);
|
||||||
|
|
||||||
inline void driver() {
|
inline void driver() {
|
||||||
if (toneFreq && toneTimeLeft > 0) {
|
if (toneFreq) {
|
||||||
toneCounter += toneFreq;
|
toneCounter += toneFreq;
|
||||||
if ((toneCounter & 0x80) == 0x80)
|
if ((toneCounter & 0x80) == 0x80)
|
||||||
BUZZER_ON;
|
BUZZER_ON;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue