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:
Claudiu Olteanu 2015-08-13 01:39:14 +03:00 committed by Dirk Hohndel
parent a6274a3a55
commit f103553df1

View File

@ -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);