Skip to content

Commit

Permalink
Fixed tuning issue due to rounding error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mre-ableton committed Aug 14, 2014
1 parent e1eb68a commit 45b68ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nostromotron/Hardware.ino
Expand Up @@ -115,7 +115,7 @@ bool Hardware::Init(const Hardware::Configuration& configuration)

// Define our audio update rate using 44100 Hrz

sTimer0.begin(SOnAudioTimer, 1000000 / configuration_.audioRate_);
sTimer0.begin(SOnAudioTimer, 1000000.0f / float(configuration_.audioRate_));

// Makes sre our audio interrupt runs with the highest priority
NVIC_SET_PRIORITY(IRQ_PIT_CH0, 0);
Expand All @@ -130,4 +130,4 @@ bool Hardware::Init(const Hardware::Configuration& configuration)
}

//-----------------------------------------------------------


0 comments on commit 45b68ef

Please sign in to comment.