From f103553df174d46721bd2dbcdff26c92558b6c46 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 eebda24..c7dfb03 100644 --- a/src/hw_ostc3.c +++ b/src/hw_ostc3.c @@ -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);