From 94bffa104a3e9d82ca0acd1060c3a851622d1846 Mon Sep 17 00:00:00 2001 From: Jos van Mourik Date: Thu, 1 Aug 2024 20:47:15 +0200 Subject: [PATCH] Set CTS/DSR/DCD high like a real Microtouch --- src/device/mouse_microtouch_touchscreen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device/mouse_microtouch_touchscreen.c b/src/device/mouse_microtouch_touchscreen.c index b05e82054..20ec5351c 100644 --- a/src/device/mouse_microtouch_touchscreen.c +++ b/src/device/mouse_microtouch_touchscreen.c @@ -356,6 +356,10 @@ mtouch_init(const device_t *info) dev->serial = serial_attach(device_get_config_int("port"), NULL, mtouch_write, dev); dev->baud_rate = device_get_config_int("baudrate"); + serial_set_cts(dev->serial, 1); + serial_set_dsr(dev->serial, 1); + serial_set_dcd(dev->serial, 1); + fifo8_create(&dev->resp, 512); timer_add(&dev->host_to_serial_timer, mtouch_write_to_host, dev, 0); timer_add(&dev->reset_timer, microtouch_reset_complete, dev, 0);