for unknown reason, esp8266 wants delay() not yield() so it doesnt crash

This commit is contained in:
ladyada committed 2023-09-24 01:09:06 -04:00
1 parent 83a182d260
commit ff70355ed6
1 file changed
+1 -1
+1 -1
View File
@@ -1348,7 +1348,7 @@ void Adafruit_SPITFT::writeColor(uint16_t color, uint32_t len) {
if (pixelsThisPass > 50000)
pixelsThisPass = 50000;
len -= pixelsThisPass;
yield(); // Periodic yield() on long fills
delay(1); // Periodic delay on long fills
while (pixelsThisPass--) {
hwspi._spi->write(hi);
hwspi._spi->write(lo);