mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-09-29 11:42:09 +00:00
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:
committed by
Dominic Radermacher
parent
434df678d2
commit
d05d31bb86
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user