From 1c62b5ef97d5b48864c8ca5594aa7e63844acbe7 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Fri, 21 May 2021 14:08:39 +0200 Subject: [PATCH] Fix toggle, back, prev, next properties --- src/hasp/hasp_attribute.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index 4010eff6..e6f9a6bd 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -888,7 +888,7 @@ static hasp_attribute_type_t hasp_process_gauge_attribute(lv_obj_t* obj, uint16_ static hasp_attribute_type_t specific_page_attribute(lv_obj_t* obj, uint16_t attr_hash, int32_t& val, bool update) { - if(!obj_check_type(obj, LV_HASP_PAGE)) return hasp_attribute_type_t::ATTR_NOT_FOUND; + if(!obj_check_type(obj, LV_HASP_SCREEN)) return hasp_attribute_type_t::ATTR_NOT_FOUND; uint8_t pageid; @@ -1659,6 +1659,7 @@ static hasp_attribute_type_t attribute_common_bool(lv_obj_t* obj, uint16_t attr_ default: return hasp_attribute_type_t::ATTR_NOT_FOUND; // attribute_not found } + break; // attribute_found default: return hasp_attribute_type_t::ATTR_NOT_FOUND; // attribute_not found