From 9b28365a0aaf53cd5175947fcdd924d945709d4f Mon Sep 17 00:00:00 2001 From: Ivan Seidel Date: Mon, 22 Dec 2014 01:14:54 -0200 Subject: [PATCH] Fixed bad character (HOT FIX) --- DueTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DueTimer.cpp b/DueTimer.cpp index 685883c..9bf968d 100644 --- a/DueTimer.cpp +++ b/DueTimer.cpp @@ -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;