Add log on touch event
This commit is contained in:
@@ -775,7 +775,12 @@ display:
|
||||
page_changed->execute(id(page_names)[x].c_str());
|
||||
on_touch:
|
||||
lambda: |-
|
||||
timer_reset_all->execute(current_page->state.c_str());
|
||||
static const char *const TAG = "display.disp1.on_touch";
|
||||
ESP_LOGD(TAG, "Nextion touch event detected!"); // To do: Change log level to VERBOSE
|
||||
ESP_LOGD(TAG, "Page: %s", id(page_names)[page_id].c_str());
|
||||
ESP_LOGD(TAG, "Component Id: %i", component_id);
|
||||
ESP_LOGD(TAG, "Event type: %s", touch_event ? "Press" : "Release");
|
||||
timer_reset_all->execute(id(page_names)[page_id].c_str());
|
||||
|
||||
##### START - GLOBALS CONFIGURATION #####
|
||||
globals:
|
||||
|
||||
Reference in New Issue
Block a user