This commit is contained in:
Ben Suffolk 2022-06-11 10:10:29 +01:00
commit bdafc3d45e
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ on:
types: [created]
push:
branches:
- main
- master
paths-ignore:
- '**.md'
- '**.yml'

View File

@ -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);