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
0541770a8c
commit
41ba0daec5
@ -341,7 +341,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