From 99b140512efa0028656aa6c2ba1d3e449993ee8e Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:43:35 +0200 Subject: [PATCH] Haspmota dropdown options (#21203) * Fix HASPmota dropdown class "options" attribute * More fix --- .../lv_haspmota/src/embedded/lv_haspmota.be | 2 +- .../lv_haspmota/src/solidify/solidified_lv_haspmota.h | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/libesp32_lvgl/lv_haspmota/src/embedded/lv_haspmota.be b/lib/libesp32_lvgl/lv_haspmota/src/embedded/lv_haspmota.be index 982e3ec64..e9d4d3347 100644 --- a/lib/libesp32_lvgl/lv_haspmota/src/embedded/lv_haspmota.be +++ b/lib/libesp32_lvgl/lv_haspmota/src/embedded/lv_haspmota.be @@ -1419,7 +1419,7 @@ class lvh_dropdown : lvh_obj def set_val(t) self._val = t - self._lv_obj.set_selected(t, 0) # add second parameter - no animation + self._lv_obj.set_selected(t) end def get_val() return self._lv_obj.get_selected() diff --git a/lib/libesp32_lvgl/lv_haspmota/src/solidify/solidified_lv_haspmota.h b/lib/libesp32_lvgl/lv_haspmota/src/solidify/solidified_lv_haspmota.h index 07843b3e2..28a1e78bc 100644 --- a/lib/libesp32_lvgl/lv_haspmota/src/solidify/solidified_lv_haspmota.h +++ b/lib/libesp32_lvgl/lv_haspmota/src/solidify/solidified_lv_haspmota.h @@ -6887,22 +6887,20 @@ be_local_closure(lvh_dropdown_set_val, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ + ( &(const bvalue[ 3]) { /* constants */ /* K0 */ be_nested_str_weak(_val), /* K1 */ be_nested_str_weak(_lv_obj), /* K2 */ be_nested_str_weak(set_selected), - /* K3 */ be_const_int(0), }), be_str_weak(set_val), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ + ( &(const binstruction[ 6]) { /* code */ 0x90020001, // 0000 SETMBR R0 K0 R1 0x88080101, // 0001 GETMBR R2 R0 K1 0x8C080502, // 0002 GETMET R2 R2 K2 0x5C100200, // 0003 MOVE R4 R1 - 0x58140003, // 0004 LDCONST R5 K3 - 0x7C080600, // 0005 CALL R2 3 - 0x80000000, // 0006 RET 0 + 0x7C080400, // 0004 CALL R2 2 + 0x80000000, // 0005 RET 0 }) ) );