From ad4bcffa2326b8b72f35107fe8723a1dcdd564f8 Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Thu, 13 Aug 2015 01:40:32 +0300 Subject: [PATCH] Use custom set_timeout callback for Shearwater family Signed-off-by: Claudiu Olteanu Signed-off-by: Dirk Hohndel --- src/shearwater_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shearwater_common.c b/src/shearwater_common.c index b12bf9b..0b05e53 100644 --- a/src/shearwater_common.c +++ b/src/shearwater_common.c @@ -88,7 +88,7 @@ shearwater_common_custom_open (shearwater_common_device_t *device, dc_context_t } // 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); return DC_STATUS_IO;