Update ESPMegaDisplay.cpp

This commit is contained in:
Siwat Sirichai 2023-12-30 18:51:13 +07:00
parent 53937dd0ed
commit 59b1ade59d
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ void ESPMegaDisplay::processTouchPayload() {
// The fourth byte of the payload is the event
uint8_t event = rx_buffer[3];
// 0x01 is press, 0x00 is release
ESP_LOGV("ESPMegaDisplay", "Touch event: page=%d, component=%d, event=%d", page, component, event);
}
/**
@ -74,6 +75,7 @@ void ESPMegaDisplay::processPageReportPayload() {
pageChangeCallback(this->currentPage);
}
rx_buffer_index = 0;
ESP_LOGV("ESPMegaDisplay", "Page change event: page=%d", this->currentPage);
}
/**