diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-03-16 13:43:30 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-03-16 13:43:30 +0400 |
commit | 4c8c94514f46d9cf944d6bec8d64180ae02b5d38 (patch) | |
tree | fe3565442b8758b4d5d08a46126c0aeb3badbd3c /clockless_arm_k20.h | |
parent | 4f74b580304eb04b007a22457b4981360d620f5e (diff) |
* 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.
Diffstat (limited to 'clockless_arm_k20.h')
-rw-r--r-- | clockless_arm_k20.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<RGB_ORDER>(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<RGB_ORDER>(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(); |