From 912e8b62e7d6ce7a0b14f9f4236ea0196883123c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 1 Jul 2019 17:07:17 +0200 Subject: [PATCH] Add background timeslot to clear heap Add background timeslot to clear heap --- sonoff/xdsp_04_ili9341.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/sonoff/xdsp_04_ili9341.ino b/sonoff/xdsp_04_ili9341.ino index 5bb777607..f98866d5e 100644 --- a/sonoff/xdsp_04_ili9341.ino +++ b/sonoff/xdsp_04_ili9341.ino @@ -173,6 +173,7 @@ void Ili9341PrintLog(void) tft->print(disp_screen_buffer[i]); tft_scroll += theight; tft->setCursor(0, tft_scroll); + delay(1); // Fix background runs heap usage due to long runtime of this loop (up to 1 second) } strlcpy(disp_screen_buffer[last_row], txt, disp_screen_buffer_cols); DisplayFillScreen(last_row);