MEGA2560 didn't compile correctly

This commit is contained in:
bsongis
2014-12-08 20:20:13 +01:00
parent 2c591e810d
commit 4c2c85fe9f
9 changed files with 80 additions and 72 deletions
+4 -4
View File
@@ -38,8 +38,8 @@
#define audio_h
#if defined(PCBSTD)
#define SPEAKER_ON BUZZER_ON
#define SPEAKER_OFF toneFreq=0; BUZZER_OFF
#define speakerOn() buzzerOn()
#define speakerOff() toneFreq=0; buzzerOff()
#endif
//audio
@@ -66,9 +66,9 @@ class audioQueue
if (toneFreq) {
toneCounter += toneFreq;
if ((toneCounter & 0x80) == 0x80)
BUZZER_ON;
buzzerOn();
else
BUZZER_OFF;
buzzerOff();
}
}