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()
435
435
}
436
436
437
437
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
439
439
static void setupTimer2 ()
440
440
{
441
441
backupPreMozziTimer2 (); // to reset while pausing
442
442
unsigned long period = 16000000UL /AUDIO_RATE;
443
- period *= clockCyclesPerMicrosecond ();
444
- FrequencyTimer2::setPeriodMicroSeconds (period);
443
+ FrequencyTimer2::setPeriodCPUCycles (period);
445
444
FrequencyTimer2::setOnOverflow (dummy);
446
445
FrequencyTimer2::enable ();
447
446
Original file line number Diff line number Diff line change 4
4
get the latest version from https://sensorium.github.io/Mozzi/
5
5
6
6
7
+ release v1.0.3rc6
8
+ -MozziGuts.cpp line 444: changed setPeriodMicroSeconds setPeriodCPUCycles so HIFI actually works this time...
9
+
10
+
7
11
release v1.0.3rc5
8
12
-MozziGuts.cpp line 444: changed setPeriod to setPeriodMicroSeconds to match Mozzi's modified FrequencyTimer2
9
13
You can’t perform that action at this time.
0 commit comments