mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix compiler warnings
This commit is contained in:
parent
2c3b383d4f
commit
afe71a648e
@ -156,7 +156,7 @@ lv_res_t lv_qrcode_update2(lv_obj_t* qrcode, const void* data, uint32_t data_len
|
|||||||
|
|
||||||
lv_img_decoder_dsc_t dec_dsc;
|
lv_img_decoder_dsc_t dec_dsc;
|
||||||
lv_res_t res = lv_img_decoder_open(&dec_dsc, ext->src, LV_COLOR_CYAN);
|
lv_res_t res = lv_img_decoder_open(&dec_dsc, ext->src, LV_COLOR_CYAN);
|
||||||
(void)res;
|
(void)res; // unused
|
||||||
|
|
||||||
for(int y = 0; y < dec_dsc.header.h; y++) {
|
for(int y = 0; y < dec_dsc.header.h; y++) {
|
||||||
for(int x = 0; x < dec_dsc.header.w; x++) {
|
for(int x = 0; x < dec_dsc.header.w; x++) {
|
||||||
|
@ -278,7 +278,7 @@ void haspProgressMsg(const __FlashStringHelper* msg)
|
|||||||
/*Add a custom apply callback*/
|
/*Add a custom apply callback*/
|
||||||
static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t name)
|
static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t name)
|
||||||
{
|
{
|
||||||
lv_style_list_t* list;
|
/* lv_style_list_t* list;
|
||||||
|
|
||||||
switch(name) {
|
switch(name) {
|
||||||
case LV_THEME_BTN:
|
case LV_THEME_BTN:
|
||||||
@ -288,7 +288,7 @@ static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t
|
|||||||
default:
|
default:
|
||||||
// nothing
|
// nothing
|
||||||
;
|
;
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -307,7 +307,7 @@ void my_btnmatrix_map_clear(lv_obj_t* obj)
|
|||||||
|
|
||||||
static void my_btnmatrix_map_create(lv_obj_t* obj, const char* payload)
|
static void my_btnmatrix_map_create(lv_obj_t* obj, const char* payload)
|
||||||
{
|
{
|
||||||
const char** map_p = lv_btnmatrix_get_map_array(obj);
|
// const char** map_p = lv_btnmatrix_get_map_array(obj);
|
||||||
|
|
||||||
// Create new map
|
// Create new map
|
||||||
// Reserve memory for JsonDocument
|
// Reserve memory for JsonDocument
|
||||||
|
@ -190,6 +190,7 @@ void guiSetup(void)
|
|||||||
disp_drv.ver_res = TFT_HEIGHT;
|
disp_drv.ver_res = TFT_HEIGHT;
|
||||||
}
|
}
|
||||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||||
|
(void)display; // unused
|
||||||
|
|
||||||
/* Initialize Filesystems */
|
/* Initialize Filesystems */
|
||||||
#if LV_USE_FS_IF != 0
|
#if LV_USE_FS_IF != 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user