mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add HASP_DEBUG flag
This commit is contained in:
parent
d41d22024f
commit
31de835f4f
@ -21,10 +21,6 @@ static void my_scr_load_anim_start(lv_anim_t* a)
|
||||
if(hasp_find_id_from_obj(page, &pageid, &objid)) {
|
||||
LOG_TRACE(TAG_HASP, F(D_HASP_CHANGE_PAGE), pageid);
|
||||
haspPages.set(pageid, LV_SCR_LOAD_ANIM_NONE, 0, 0);
|
||||
|
||||
#if defined(HASP_DEBUG_OBJ_TREE)
|
||||
hasp_object_tree(page, pageid, 0);
|
||||
#endif
|
||||
} else {
|
||||
dispatch_current_page();
|
||||
}
|
||||
|
@ -396,7 +396,9 @@ IRAM_ATTR void telnetLoop()
|
||||
telnetConsole = new ConsoleInput(&bufferedTelnetClient, HASP_CONSOLE_BUFFER);
|
||||
if(telnetConsole) {
|
||||
telnetConsole->setLineCallback(telnetProcessLine);
|
||||
#ifdef HASP_DEBUG
|
||||
telnetConsole->setDebug(true);
|
||||
#endif
|
||||
} else {
|
||||
telnetClientDisconnect();
|
||||
LOG_ERROR(TAG_TELN, F(D_TELNET_FAILED));
|
||||
|
Loading…
x
Reference in New Issue
Block a user