From d05d31bb86bf68f032515f6b0e29b05f9edd14f0 Mon Sep 17 00:00:00 2001 From: James A <33671033+Jallerton00@users.noreply.github.com> Date: Tue, 22 Sep 2026 13:13:31 +0100 Subject: [PATCH] copy min_timeout into devinfo in ptouch_open() devinfo is malloc'd and min_timeout was never set, so the status timeout was whatever happened to be in memory (seen as "timeout (1086334400 sec) while waiting for status response"). --- src/libptouch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libptouch.c b/src/libptouch.c index 2a8483f..c1c61a6 100644 --- a/src/libptouch.c +++ b/src/libptouch.c @@ -181,6 +181,7 @@ int ptouch_open(ptouch_dev *ptdev) (*ptdev)->devinfo->max_px=ptdevs[k].max_px; (*ptdev)->devinfo->flags=ptdevs[k].flags; (*ptdev)->devinfo->pin_offset=ptdevs[k].pin_offset; + (*ptdev)->devinfo->min_timeout=ptdevs[k].min_timeout; return 0; } }