From 8f3579d4e433397c941d82e96667d75423857179 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Mon, 21 Dec 2020 22:26:37 +0100 Subject: [PATCH] Remove dual framebuffer from DMA --- src/hasp_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index 455afe03..980883b1 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -487,8 +487,9 @@ void guiSetup() static lv_color_t *guiVdbBuffer1, *guiVdbBuffer2 = NULL; guiVDBsize = 4 * 1024u; // 16 KBytes * 2 guiVdbBuffer1 = (lv_color_t *)heap_caps_malloc(sizeof(lv_color_t) * guiVDBsize, MALLOC_CAP_DMA); - guiVdbBuffer2 = (lv_color_t *)heap_caps_malloc(sizeof(lv_color_t) * guiVDBsize, MALLOC_CAP_DMA); - lv_disp_buf_init(&disp_buf, guiVdbBuffer1, guiVdbBuffer2, guiVDBsize); + lv_disp_buf_init(&disp_buf, guiVdbBuffer1, NULL, guiVDBsize); + //guiVdbBuffer2 = (lv_color_t *)heap_caps_malloc(sizeof(lv_color_t) * guiVDBsize, MALLOC_CAP_DMA); + //lv_disp_buf_init(&disp_buf, guiVdbBuffer1, guiVdbBuffer2, guiVDBsize); #else static lv_color_t * guiVdbBuffer1; guiVDBsize = 16 * 1024u; // 32 KBytes * 2