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").
This commit is contained in:
James A
2026-09-25 09:50:43 +02:00
committed by Dominic Radermacher
parent 434df678d2
commit d05d31bb86
+1
View File
@@ -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;
}
}