diff --git a/radio/src/audio_avr.cpp b/radio/src/audio_avr.cpp index 9cc416000..e4ddd26cb 100644 --- a/radio/src/audio_avr.cpp +++ b/radio/src/audio_avr.cpp @@ -62,7 +62,7 @@ void audioQueue::heartbeat() else { #if defined(CPUM2560) if (toneFreq) { - OCR0A = (5000 / toneFreq); // sticking with old values approx 20(abs. min) to 90, 60 being the default tone(?). + OCR4A = (5000 / toneFreq); // sticking with old values approx 20(abs. min) to 90, 60 being the default tone(?). speakerOn(); } #endif @@ -88,7 +88,7 @@ void audioQueue::heartbeat() if (tone2TimeLeft > 0) { #if defined(CPUM2560) if (tone2Freq) { - OCR0A = (5000 / tone2Freq); // sticking with old values approx 20(abs. min) to 90, 60 being the default tone(?). + OCR4A = (5000 / tone2Freq); // sticking with old values approx 20(abs. min) to 90, 60 being the default tone(?). speakerOn(); } #else diff --git a/radio/src/targets/mega2560/board_mega2560.cpp b/radio/src/targets/mega2560/board_mega2560.cpp index 30026111f..d153186df 100644 --- a/radio/src/targets/mega2560/board_mega2560.cpp +++ b/radio/src/targets/mega2560/board_mega2560.cpp @@ -62,11 +62,10 @@ inline void boardInit() OCR2A = 156; TIMSK2 |= (1<