From 4a4caab016c4bde305eb78534433658be7ee341d Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Sun, 10 Oct 2021 03:14:35 +0200 Subject: [PATCH] Fix objid is read-only --- src/hasp/hasp_attribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index ddf946e3..73dfbe3a 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -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: