mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix crash with bar object
This commit is contained in:
parent
0a3c685836
commit
3ce3c4853b
@ -854,7 +854,7 @@ static void hasp_attribute_get_part_state(lv_obj_t * obj, const char * attr_in,
|
||||
if(index == 1) {
|
||||
part = LV_SLIDER_PART_INDIC;
|
||||
} else if(index == 2) {
|
||||
part = LV_SLIDER_PART_KNOB;
|
||||
if(!check_obj_type(obj, LV_HASP_BAR)) part = LV_SLIDER_PART_KNOB;
|
||||
} else {
|
||||
part = LV_SLIDER_PART_BG;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user