Skip to content

Commit bcc0c4e

Browse files
committed
fixed HIFI
1 parent 5766d9d commit bcc0c4e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

MozziGuts.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
439439
static 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

extras/NEWS.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ NEWS
44
get 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+
711
release v1.0.3rc5
812
-MozziGuts.cpp line 444: changed setPeriod to setPeriodMicroSeconds to match Mozzi's modified FrequencyTimer2
913

0 commit comments

Comments
 (0)