From 41ba0daec5e242c9f79c32c5deb49366baf729bd Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Thu, 13 Aug 2015 01:39:14 +0300 Subject: [PATCH] Use the custom set_timeout callback for HW_OSTC 3 family Signed-off-by: Claudiu Olteanu Signed-off-by: Dirk Hohndel --- src/hw_ostc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw_ostc3.c b/src/hw_ostc3.c index 2d975b7..9f4e18c 100644 --- a/src/hw_ostc3.c +++ b/src/hw_ostc3.c @@ -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);