From 4c8c94514f46d9cf944d6bec8d64180ae02b5d38 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Sun, 16 Mar 2014 02:43:30 -0700 Subject: * Move controller linkage to linked list, get rid of constant array of controllers * Perform memory usage trimming on avr code and code across the board * Tweak template instantiations for clockless chipsets to get rid of spurious globals that were never being used. --- clockless_arm_k20.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clockless_arm_k20.h') diff --git a/clockless_arm_k20.h b/clockless_arm_k20.h index 2ab6d27a..59905d45 100644 --- a/clockless_arm_k20.h +++ b/clockless_arm_k20.h @@ -31,7 +31,7 @@ public: showRGBInternal(PixelController(rgbdata, nLeds, scale, getDither())); // Adjust the timer - long microsTaken = CLKS_TO_MICROS((long)nLeds * 8 * (T1 + T2 + T3)); + long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3)); MS_COUNTER += (microsTaken / 1000); sei(); mWait.mark(); @@ -44,7 +44,7 @@ public: showRGBInternal(PixelController(rgbdata, nLeds, scale, getDither())); // Adjust the timer - long microsTaken = CLKS_TO_MICROS((long)nLeds * 8 * (T1 + T2 + T3)); + long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3)); MS_COUNTER += (microsTaken / 1000); sei(); mWait.mark(); @@ -59,7 +59,7 @@ public: // Adjust the timer - long microsTaken = CLKS_TO_MICROS((long)nLeds * 8 * (T1 + T2 + T3)); + long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3)); MS_COUNTER += (microsTaken / 1000); sei(); mWait.mark(); -- cgit v1.2.3