[PATCH] Exit with failure if dc_open method fails

Claudiu Olteanu olteanu.vasilica.claudiu at gmail.com
Wed Sep 9 09:57:20 PDT 2015


If the dc_serial_*_open method fails then we should exit with
an error and don't try to open the device using the native
implementation.

Currently if the local Bluetooth adapter doesn't connect successfully
to a dive computer it tries to open the device using the native serial
implementation (libdivecomputer.c: 944 - serial == NULL).

I am not sure how it should work for the serial FTDI implementation if
it fails. Should it try to open the device again using the old native
serial
implementation? Anton?

Cheers,
Claudiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150909/8e2ae04a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Exit-with-failure-if-the-first-dc_open-method-fails.patch
Type: text/x-patch
Size: 1159 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150909/8e2ae04a/attachment.bin>


More information about the subsurface mailing list