From 69d19c868c10171d8e07b5d21e78c528f445f617 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 7 May 2012 17:53:34 +0000 Subject: [PATCH] Mix Beep was not perfectly regular (especially the 3rd one) --- src/open9x.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index af1608a7b..4aac9a1bc 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -1617,7 +1617,7 @@ void perOut(uint8_t phase) memset(chans, 0, sizeof(chans)); // All outputs to 0 //========== MIXER LOOP =============== - mixWarning = 0; // TODO should be in a local variable on stack + uint8_t lv_mixWarning = 0; for (uint8_t i=0; imixWarn) mixWarning |= 1<<(md->mixWarn-1); // Mix warning + if (md->mixWarn) lv_mixWarning |= 1<<(md->mixWarn-1); // Mix warning } } else { @@ -1781,6 +1781,8 @@ void perOut(uint8_t phase) break; } } + + mixWarning = lv_mixWarning; } #ifdef DISPLAY_USER_DATA