Bug fix in audio - playASAP sending 1 to many events. So a request for 3 beeps would play 4 etc..

Fix in haptic to do correct number of vibrations on time count down.
This commit is contained in:
rob@marotori.com
2012-04-17 10:33:56 +00:00
parent 224bed6872
commit bcfc573312
2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ void audioQueue::playASAP(uint8_t tFreq, uint8_t tLen, uint8_t tPause,
queueToneFreq[t_queueWidx] = ((s_beeper && tFreq) ? tFreq + g_eeGeneral.speakerPitch + BEEP_OFFSET : 0); // add pitch compensator
queueToneLength[t_queueWidx] = getToneLength(tLen);
queueTonePause[t_queueWidx] = tPause;
queueToneRepeat[t_queueWidx] = tRepeat;
queueToneRepeat[t_queueWidx] = tRepeat -1;
queueToneFreqIncr[t_queueWidx] = tFreqIncr;
t_queueWidx = next_queueWidx;
}