mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Only change page when needed
This commit is contained in:
parent
2a6a3cd186
commit
c15355a71f
@ -55,8 +55,10 @@ void Page::set(uint8_t pageid, lv_scr_load_anim_t animation)
|
||||
LOG_WARNING(TAG_HASP, F(D_HASP_INVALID_PAGE), pageid);
|
||||
} else {
|
||||
LOG_TRACE(TAG_HASP, F(D_HASP_CHANGE_PAGE), pageid);
|
||||
_current_page = pageid;
|
||||
lv_scr_load_anim(page, animation, 500, 0, false);
|
||||
if(_current_page != pageid) {
|
||||
_current_page = pageid;
|
||||
lv_scr_load_anim(page, animation, 500, 0, false);
|
||||
}
|
||||
hasp_object_tree(page, pageid, 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user