changed bufA and bufB from static to dynamic allocated memory to safe static DRAM (#57)

This commit is contained in:
Klaus Musch 2024-01-21 20:05:49 +01:00 committed by GitHub
parent e1ff6459a9
commit d97d263620
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ int backlight_brightness = 255;
// LVGL declarations // LVGL declarations
static lv_disp_draw_buf_t draw_buf; static lv_disp_draw_buf_t draw_buf;
static lv_color_t bufA[ screenWidth * screenHeight / 10 ]; lv_color_t * bufA = (lv_color_t *) malloc(sizeof(lv_color_t) * screenWidth * screenHeight / 10);
static lv_color_t bufB[ screenWidth * screenHeight / 10 ]; lv_color_t * bufB = (lv_color_t *) malloc(sizeof(lv_color_t) * screenWidth * screenHeight / 10);
lv_obj_t* objBattPercentage; lv_obj_t* objBattPercentage;
lv_obj_t* objBattIcon; lv_obj_t* objBattIcon;
LV_IMG_DECLARE(gradientLeft); LV_IMG_DECLARE(gradientLeft);