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>2015-04-06 05:25:40 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2015-04-06 05:25:40 +0300
commit085f9ad90622df367d693d943b1b2d9f5db96398 (patch)
tree501af5a6289c616666b0b89461d2c34d5ed64aa2 /chipsets.h
parent5b1f581ceb5bad976340e0b250527632f994c7ec (diff)
a few more places that should be waiting fully before releasing the SPI hardware
Diffstat (limited to 'chipsets.h')
-rw-r--r--chipsets.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chipsets.h b/chipsets.h
index 1af35616..342b428d 100644
--- a/chipsets.h
+++ b/chipsets.h
@@ -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();
}