Add log on touch event

This commit is contained in:
Edward Firmo
2023-12-16 00:28:42 +01:00
parent 36cad5ee4c
commit 31ff6b4716

View File

@@ -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: