Use the custom set_timeout callback for HW_OSTC 3 family
Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a6274a3a55
commit
f103553df1
@ -364,7 +364,7 @@ hw_ostc3_device_custom_open (dc_device_t **out, dc_context_t *context, dc_serial
|
||||
}
|
||||
|
||||
// Set the timeout for receiving data (3000ms).
|
||||
if (serial_set_timeout (device->serial->port, 3000) == -1) {
|
||||
if (device->serial->ops->set_timeout (device->serial->port, 3000) == -1) {
|
||||
ERROR (context, "Failed to set the timeout.");
|
||||
device->serial->ops->close (device->serial->port);
|
||||
free (device);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user