Use custom set_timeout callback for Shearwater 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:40:32 +03:00 committed by Dirk Hohndel
parent f103553df1
commit ad4bcffa23

View File

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