diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0a435373..c3e90ffa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,7 +5,7 @@ on: types: [created] push: branches: - - main + - master paths-ignore: - '**.md' - '**.yml' diff --git a/src/hasp/hasp_object.cpp b/src/hasp/hasp_object.cpp index f62b1383..724bfb2b 100644 --- a/src/hasp/hasp_object.cpp +++ b/src/hasp/hasp_object.cpp @@ -39,7 +39,7 @@ lv_obj_t* hasp_find_obj_from_parent_id(lv_obj_t* parent, uint8_t objid) for(uint16_t i = 0; i < tabcount; i++) { lv_obj_t* tab = lv_tabview_get_tab(child, i); // LOG_DEBUG(TAG_HASP, "Found tab %i", i); - if(tab->user_data.objid && objid == tab->user_data.objid) return tab; /* tab found, return it */ + if(tab->user_data.id && objid == tab->user_data.id) return tab; /* tab found, return it */ /* check grandchildren */ grandchild = hasp_find_obj_from_parent_id(tab, objid);