Issue 93 fixed

Flash saving.
This commit is contained in:
bsongis
2012-08-18 21:10:51 +00:00
parent 08c24d0ffb
commit de18436cda
5 changed files with 19 additions and 23 deletions
+8 -5
View File
@@ -1250,11 +1250,14 @@ void checkTrims()
#endif
if (beepTrim) {
killEvents(event);
if (beepTrim == 1)
if (beepTrim == 1) {
AUDIO_TRIM_MIDDLE(after);
else
pauseEvents(event);
}
else {
AUDIO_TRIM_END(after);
killEvents(event);
}
}
else {
AUDIO_TRIM(event, after);
@@ -2759,14 +2762,14 @@ ISR(TIMER0_COMP_vect, ISR_NOBLOCK) //10ms timer
{
cli();
#if defined (PCBV4)
#if defined(PCBV4)
static uint8_t accuracyWarble = 4; // because 16M / 1024 / 100 = 156.25. So bump every 4.
uint8_t bump = (!(accuracyWarble++ & 0x03)) ? 157 : 156;
TIMSK2 &= ~(1<<OCIE2A); // stop reentrance
OCR2A += bump;
#else
TIMSK &= ~(1<<OCIE0); // stop reentrance
#if defined (AUDIO)
#if defined(AUDIO) || defined(VOICE)
OCR0 += 2; // interrupt every 128us
#else
static uint8_t accuracyWarble = 4; // because 16M / 1024 / 100 = 156.25. So bump every 4.