From 2de3d427deb60e4d931f3bc3f95ec97682518bc2 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sat, 30 Dec 2023 10:29:30 +0100 Subject: [PATCH] LVGL fix type for lv_imgbtn (#20354) --- CHANGELOG.md | 1 + lib/libesp32_lvgl/lv_binding_berry/generate/be_lv_c_mapping.h | 4 ++-- lib/libesp32_lvgl/lv_binding_berry/tools/convert.py | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce8b3922a..614794a2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ All notable changes to this project will be documented in this file. - Syslog server warning caused by lack of field and hostname starting with 'z' (#14689) - Support for Domoticz floor/room topics. Regression from v12.0.1 (#20299) - Berry claiming UART0 if needed (#20324) +- LVGL fix type for lv_imgbtn ### Removed diff --git a/lib/libesp32_lvgl/lv_binding_berry/generate/be_lv_c_mapping.h b/lib/libesp32_lvgl/lv_binding_berry/generate/be_lv_c_mapping.h index 18ca143e1..aacce81e8 100644 --- a/lib/libesp32_lvgl/lv_binding_berry/generate/be_lv_c_mapping.h +++ b/lib/libesp32_lvgl/lv_binding_berry/generate/be_lv_c_mapping.h @@ -651,8 +651,8 @@ const be_ntv_func_def_t lv_colorwheel_func[] = { /* `lv_imgbtn` methods */ #ifdef BE_LV_WIDGET_IMGBTN const be_ntv_func_def_t lv_imgbtn_func[] = { - { "set_src", { (const void*) &lv_imgbtn_set_src, "", "(lv.lv_obj)(lv.lv_imgbtn_state)..." } }, - { "set_state", { (const void*) &lv_imgbtn_set_state, "", "(lv.lv_obj)(lv.lv_imgbtn_state)" } }, + { "set_src", { (const void*) &lv_imgbtn_set_src, "", "(lv.lv_obj)i..." } }, + { "set_state", { (const void*) &lv_imgbtn_set_state, "", "(lv.lv_obj)i" } }, }; #endif // BE_LV_WIDGET_IMGBTN diff --git a/lib/libesp32_lvgl/lv_binding_berry/tools/convert.py b/lib/libesp32_lvgl/lv_binding_berry/tools/convert.py index 8089c817e..3b69f8a44 100644 --- a/lib/libesp32_lvgl/lv_binding_berry/tools/convert.py +++ b/lib/libesp32_lvgl/lv_binding_berry/tools/convert.py @@ -124,6 +124,8 @@ return_types = { "lv_anim_path_cb_t": "c", "lv_anim_ready_cb_t": "c", "lv_anim_start_cb_t": "c", + # lv_imgbtn + "lv_imgbtn_state_t": "i", # arrays "constchar * []": "str_arr",