mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-30 14:16:32 +00:00
Add background timeslot to clear heap
Add background timeslot to clear heap
This commit is contained in:
parent
9268976ff1
commit
912e8b62e7
@ -173,6 +173,7 @@ void Ili9341PrintLog(void)
|
|||||||
tft->print(disp_screen_buffer[i]);
|
tft->print(disp_screen_buffer[i]);
|
||||||
tft_scroll += theight;
|
tft_scroll += theight;
|
||||||
tft->setCursor(0, tft_scroll);
|
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);
|
strlcpy(disp_screen_buffer[last_row], txt, disp_screen_buffer_cols);
|
||||||
DisplayFillScreen(last_row);
|
DisplayFillScreen(last_row);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user