Fix objid is read-only

This commit is contained in:
fvanroie 2021-10-10 03:14:35 +02:00
parent 568716ac28
commit 4a4caab016

View File

@ -1875,8 +1875,8 @@ static hasp_attribute_type_t attribute_common_int(lv_obj_t* obj, uint16_t attr_h
break; // attribute_found
case ATTR_OBJID:
if(update && val != obj->user_data.objid) return HASP_ATTR_TYPE_INT_READONLY;
val = obj->user_data.objid;
if(update && val != obj->user_data.objid) HASP_ATTR_TYPE_INT_READONLY;
break; // attribute_found
case ATTR_X: