From 0eb4f84ad8e6d3544562ec02a57bedfdd1684b52 Mon Sep 17 00:00:00 2001 From: "rob@marotori.com" Date: Fri, 4 May 2012 13:15:40 +0000 Subject: [PATCH] Fixed small bug preventing audio pitch changing on vario on arm board. --- src/ersky9x/audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ersky9x/audio.cpp b/src/ersky9x/audio.cpp index 2e6bd79b2..5b0afea29 100644 --- a/src/ersky9x/audio.cpp +++ b/src/ersky9x/audio.cpp @@ -82,7 +82,7 @@ void audioQueue::heartbeat() if (tone2TimeLeft > 0) { if (tone2Changed) { tone2Changed = 0; - set_frequency(toneFreq * 61 / 2); + set_frequency(tone2Freq * 61 / 2); tone_start(0); } tone2TimeLeft--; //time gets counted down