mirror of https://github.com/arendst/Tasmota.git
Fix Core3 warnings when compiling LVGL (#19921)
This commit is contained in:
parent
46df036b51
commit
fbe31ab294
|
@ -205,7 +205,9 @@ LvGLStatus Adafruit_LvGL_Glue::begin(Renderer *tft, void *touch, bool debug) {
|
||||||
lvgl_buffer_size = tft->width() * (flushlines ? flushlines:LV_BUFFER_ROWS);
|
lvgl_buffer_size = tft->width() * (flushlines ? flushlines:LV_BUFFER_ROWS);
|
||||||
if (tft->lvgl_pars()->use_dma) {
|
if (tft->lvgl_pars()->use_dma) {
|
||||||
lvgl_buffer_size /= 2;
|
lvgl_buffer_size /= 2;
|
||||||
lv_pixel_buf2 = new lv_color_t[lvgl_buffer_size];
|
if (lvgl_buffer_size < 1000000) {
|
||||||
|
lv_pixel_buf2 = new lv_color_t[lvgl_buffer_size];
|
||||||
|
}
|
||||||
if (!lv_pixel_buf2) {
|
if (!lv_pixel_buf2) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,13 @@
|
||||||
#ifdef USE_LVGL
|
#ifdef USE_LVGL
|
||||||
|
|
||||||
#include <berry.h>
|
#include <berry.h>
|
||||||
|
|
||||||
|
// silence warning with Core3
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
|
||||||
#include "lvgl.h"
|
#include "lvgl.h"
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
#include "be_mapping.h"
|
#include "be_mapping.h"
|
||||||
#include "be_ctypes.h"
|
#include "be_ctypes.h"
|
||||||
#include "lv_berry.h"
|
#include "lv_berry.h"
|
||||||
|
|
Loading…
Reference in New Issue