mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
clearpage all command didn't clear page 0 anymore
This commit is contained in:
parent
964a0f40c1
commit
3a58762009
@ -46,11 +46,11 @@ void Page::init(uint8_t start_page)
|
||||
void Page::clear(uint8_t pageid)
|
||||
{
|
||||
lv_obj_t* page = get_obj(pageid);
|
||||
if(page == lv_layer_sys() /*|| page == lv_layer_top()*/) {
|
||||
LOG_WARNING(TAG_HASP, F(D_HASP_INVALID_LAYER));
|
||||
} else if(is_valid(pageid)) {
|
||||
if(page == lv_layer_top() || is_valid(pageid)) {
|
||||
LOG_TRACE(TAG_HASP, F(D_HASP_CLEAR_PAGE), pageid);
|
||||
lv_obj_clean(page);
|
||||
} else {
|
||||
LOG_WARNING(TAG_HASP, F(D_HASP_INVALID_LAYER)); // lv_layer_sys
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user