From f90b3db4bdd4f756ce2aec476fd35ed12c243f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20B=C3=B6rjesson?= Date: Sun, 15 May 2022 11:07:21 +0200 Subject: [PATCH] Add a delay to avoid filling the log --- lvgl_tft/ili9488.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lvgl_tft/ili9488.c b/lvgl_tft/ili9488.c index feb9fba..e7abdaf 100644 --- a/lvgl_tft/ili9488.c +++ b/lvgl_tft/ili9488.c @@ -119,7 +119,10 @@ void ili9488_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * col uint8_t *mybuf; do { mybuf = (uint8_t *) heap_caps_malloc(3 * size * sizeof(uint8_t), MALLOC_CAP_DMA); - if (mybuf == NULL) ESP_LOGW(TAG, "Could not allocate enough DMA memory!"); + if (mybuf == NULL) { + ESP_LOGW(TAG, "Could not allocate enough DMA memory! (wait"); + vTaskDelay(1000); + } } while (mybuf == NULL); uint32_t LD = 0;