Skip to content

Commit

Permalink
Fixed bad character (HOT FIX)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Seidel committed Dec 22, 2014
1 parent 3ed7716 commit 9b28365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DueTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ uint8_t DueTimer::bestClock(double frequency, uint32_t& retRC){
{
ticks = (float) VARIANT_MCK / frequency / (float) clockConfig[clkId].divisor;
// error = abs(ticks - round(ticks));
error = clockConfig[clkId].divisor * abs(ticks round(ticks)); // Error comparison needs scaling
error = clockConfig[clkId].divisor * abs(ticks - round(ticks)); // Error comparison needs scaling
if (error < bestError)
{
bestClock = clkId;
Expand Down

1 comment on commit 9b28365

@ivanseidel
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes problem with bad characters

Please sign in to comment.