mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add lv_roller_get_selected
This commit is contained in:
parent
b471ff0da5
commit
d0e1fd0e6d
@ -1868,7 +1868,10 @@ static hasp_attribute_type_t attribute_common_val(lv_obj_t* obj, int32_t& val, b
|
||||
break;
|
||||
|
||||
case LV_HASP_ROLLER:
|
||||
lv_roller_set_selected(obj, (uint16_t)val, LV_ANIM_ON);
|
||||
if(update)
|
||||
lv_roller_set_selected(obj, (uint16_t)val, LV_ANIM_ON);
|
||||
else
|
||||
val = lv_roller_get_selected(obj);
|
||||
break;
|
||||
|
||||
case LV_HASP_BAR:
|
||||
|
Loading…
x
Reference in New Issue
Block a user