Reset calibration screen touch timer on click (#19951)
This commit is contained in:
@@ -61,7 +61,7 @@ void Touch::init() {
|
||||
enable();
|
||||
}
|
||||
|
||||
void Touch::add_control(TouchControlType type, uint16_t x, uint16_t y, uint16_t width, uint16_t height, int32_t data) {
|
||||
void Touch::add_control(TouchControlType type, uint16_t x, uint16_t y, uint16_t width, uint16_t height, intptr_t data) {
|
||||
if (controls_count == MAX_CONTROLS) return;
|
||||
|
||||
controls[controls_count].type = type;
|
||||
@@ -306,7 +306,7 @@ bool MarlinUI::touch_pressed() {
|
||||
return touch.is_clicked();
|
||||
}
|
||||
|
||||
void add_control(uint16_t x, uint16_t y, TouchControlType control_type, int32_t data, MarlinImage image, bool is_enabled, uint16_t color_enabled, uint16_t color_disabled) {
|
||||
void add_control(uint16_t x, uint16_t y, TouchControlType control_type, intptr_t data, MarlinImage image, bool is_enabled, uint16_t color_enabled, uint16_t color_disabled) {
|
||||
uint16_t width = Images[image].width;
|
||||
uint16_t height = Images[image].height;
|
||||
tft.canvas(x, y, width, height);
|
||||
|
Reference in New Issue
Block a user