File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -435,13 +435,12 @@ static void backupMozziTimer2()
435435}
436436
437437
438- // audio output interrupt on timer 2 (or 4 on ATMEGA32U4 cpu), sets the pwm levels of timer 1
438+ // audio output interrupt on timer 2 (or 4 on ATMEGA32U4 cpu), sets the pwm levels of timer 2
439439static void setupTimer2 ()
440440{
441441 backupPreMozziTimer2 (); // to reset while pausing
442442 unsigned long period = 16000000UL /AUDIO_RATE;
443- period *= clockCyclesPerMicrosecond ();
444- FrequencyTimer2::setPeriodMicroSeconds (period);
443+ FrequencyTimer2::setPeriodCPUCycles (period);
445444 FrequencyTimer2::setOnOverflow (dummy);
446445 FrequencyTimer2::enable ();
447446
Original file line number Diff line number Diff line change 44get the latest version from https://sensorium.github.io/Mozzi/
55
66
7+ release v1.0.3rc6
8+ -MozziGuts.cpp line 444: changed setPeriodMicroSeconds setPeriodCPUCycles so HIFI actually works this time...
9+
10+
711release v1.0.3rc5
812-MozziGuts.cpp line 444: changed setPeriod to setPeriodMicroSeconds to match Mozzi's modified FrequencyTimer2
913
You can’t perform that action at this time.
0 commit comments