From 6a5d21696e875f6c7039b298aab1b865e413a362 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 29 Jan 2012 21:12:55 +0000 Subject: [PATCH] xShort was longer than Short... --- src/audio.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/audio.cpp b/src/audio.cpp index 0ff3146ae..06559bd41 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -124,10 +124,10 @@ inline uint8_t audioQueue::getToneLength(uint8_t tLen) { uint8_t result = tLen; // default if (g_eeGeneral.beeperVal == 2) { - result /= 2; + result /= 3; } else if (g_eeGeneral.beeperVal == 3) { - result = (result * 3) / 2; + result /= 2; } else if (g_eeGeneral.beeperVal == 5) { //long @@ -408,4 +408,3 @@ void audioQueue::event(uint8_t e, uint8_t f) { void audioDefevent(uint8_t e) { audio.event(e, BEEP_DEFAULT_FREQ); } -