diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2015-04-06 05:25:40 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2015-04-06 05:25:40 +0300 |
commit | 085f9ad90622df367d693d943b1b2d9f5db96398 (patch) | |
tree | 501af5a6289c616666b0b89461d2c34d5ed64aa2 /chipsets.h | |
parent | 5b1f581ceb5bad976340e0b250527632f994c7ec (diff) |
a few more places that should be waiting fully before releasing the SPI hardware
Diffstat (limited to 'chipsets.h')
-rw-r--r-- | chipsets.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -55,6 +55,7 @@ public: mSPI.select(); mSPI.writeBytesValueRaw(0x80, nLeds * 3); mSPI.writeBytesValueRaw(0, ((nLeds*3+63)>>6)); + mSPI.waitFully(); mSPI.release(); } @@ -286,6 +287,7 @@ protected: pixels.stepDithering(); } writeBoundary(); + mSPI.waitFully(); mSPI.release(); } @@ -303,6 +305,7 @@ protected: pixels.stepDithering(); } writeBoundary(); + mSPI.waitFully(); mSPI.release(); } |