diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2015-01-30 21:39:48 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2015-01-30 21:39:48 +0300 |
commit | e4f5cb2e4a6ff637409e967225e43adeaaeaa0e2 (patch) | |
tree | d381b9cdda08f81f0e14d911dc1e3d6ede5c480e | |
parent | dccc72db82036377bcd2d72db4f466998189f20e (diff) |
Tweak
-rw-r--r-- | platforms/arm/k20/fastspi_arm_k20.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/arm/k20/fastspi_arm_k20.h b/platforms/arm/k20/fastspi_arm_k20.h index 0ad05ef9..7b3cf86e 100644 --- a/platforms/arm/k20/fastspi_arm_k20.h +++ b/platforms/arm/k20/fastspi_arm_k20.h @@ -284,6 +284,7 @@ public: void inline select() __attribute__((always_inline)) { if(m_pSelect != NULL) { m_pSelect->select(); } + setSPIRate(); enable_pins(); } @@ -325,7 +326,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 and/or end of each grouping template <uint8_t FLAGS, class D, EOrder RGB_ORDER> void writePixels(PixelController<RGB_ORDER> pixels) { - // setSPIRate(); + setSPIRate(); select(); int len = pixels.mLen; |