From 39bc1700bee62913b57c5fffc917754909e3189c Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 18 Mar 2013 07:18:49 +0000 Subject: [PATCH] [stock] Vario min frequency --- src/frsky.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frsky.cpp b/src/frsky.cpp index db3b33f3b..10aa7f79b 100644 --- a/src/frsky.cpp +++ b/src/frsky.cpp @@ -802,7 +802,11 @@ NOINLINE void telemetryPoll10ms() uint16_t tmr10ms = g_tmr10ms; if (verticalSpeed < 0 || tmr10ms > s_varioTmr) { uint8_t SoundVarioBeepTime = (1600 - verticalSpeed) / 100; +#if defined(PCBSTD) + uint8_t SoundVarioBeepFreq = max(40, (verticalSpeed * 10 + 20000) >> 8); +#else uint8_t SoundVarioBeepFreq = (verticalSpeed * 10 + 16000) >> 8; +#endif s_varioTmr = tmr10ms + (SoundVarioBeepTime*2); AUDIO_VARIO(SoundVarioBeepFreq, SoundVarioBeepTime); }