Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2014-04-03 05:39:25 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-04-03 05:39:25 +0400
commitc8701872a14a7a84682dafc4e95bef2a25bc82ed (patch)
tree6e19268cb355a246db3f2e7aa30c5a5c52100833
parentbf4cb9e7b3e5c31e4797a1d1ecf2401caa66c375 (diff)
Make sure writePixels doesn't get inlined aggressively, there's really no good savings/reason for it to get inlined.
-rw-r--r--fastspi_bitbang.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastspi_bitbang.h b/fastspi_bitbang.h
index fa50e470..24d2e41e 100644
--- a/fastspi_bitbang.h
+++ b/fastspi_bitbang.h
@@ -286,7 +286,7 @@ public:
// write a block of uint8_ts out in groups of three. len is the total number of uint8_ts to write out. The template
// parameters indicate how many uint8_ts to skip at the beginning of each grouping, as well as a class specifying a per
// byte of data modification to be made. (See DATA_NOP above)
- template <uint8_t FLAGS, class D, EOrder RGB_ORDER> void writePixels(PixelController<RGB_ORDER> pixels) {
+ template <uint8_t FLAGS, class D, EOrder RGB_ORDER> __attribute__((noinline)) void writePixels(PixelController<RGB_ORDER> pixels) {
select();
int len = pixels.mLen;