From 0b665f145aabb3cebe269fb1eccc51e5ab4f8256 Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Fri, 29 Mar 2013 07:40:39 +0000 Subject: [PATCH] [stock] New commit for jhsa tests on the vario --- src/maths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maths.cpp b/src/maths.cpp index a00b005a7..798dd9053 100644 --- a/src/maths.cpp +++ b/src/maths.cpp @@ -150,7 +150,7 @@ void varioWakeup() #if defined(PCBSTD) tmr10ms_t tmr10ms = get_tmr10ms(); - if (tmr10ms > s_varioTmr) { + if (verticalSpeed >= 0 && tmr10ms > s_varioTmr) { uint8_t SoundVarioBeepTime = limit((uint8_t)5, (uint8_t)((1600 - verticalSpeed) / 100), (uint8_t)30); uint8_t SoundVarioBeepFreq = limit((uint8_t)40, (uint8_t)((verticalSpeed * 10 + 20000) >> 8), (uint8_t)120); if (verticalSpeed >= 0)