Skip to content

Commit ff70355

Browse files
committed
for unknown reason, esp8266 wants delay() not yield() so it doesnt crash
1 parent 83a182d commit ff70355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_SPITFT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ void Adafruit_SPITFT::writeColor(uint16_t color, uint32_t len) {
13481348
if (pixelsThisPass > 50000)
13491349
pixelsThisPass = 50000;
13501350
len -= pixelsThisPass;
1351-
yield(); // Periodic yield() on long fills
1351+
delay(1); // Periodic delay on long fills
13521352
while (pixelsThisPass--) {
13531353
hwspi._spi->write(hi);
13541354
hwspi._spi->write(lo);

0 commit comments

Comments
 (0)