Jef Driesen 1abf400c63 Return the actual libdivecomputer error code
The divecomputer_device_open() function tries all supported transports
one by one, and exits as soon as one is opened successfully. When the
end of the function is reached, the DC_STATUS_UNSUPPORTED error code is
returned.

The annoying side effect is that the actual error code returned by the
transport is ignored and changed into DC_STATUS_UNSUPPORTED. This is
very confusing while troubleshooting download problems.

Fixed by initializing the error code to DC_STATUS_UNSUPPORTED, in case
no transport is available for trying, and returning the last reported
error to caller.

Signed-off-by: Jef Driesen <jef@libdivecomputer.org>
2023-11-05 06:54:40 +13:00
..
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-02-17 06:46:46 -08:00
2017-04-29 13:32:55 -07:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2021-07-23 11:22:43 -07:00
2023-04-14 21:20:23 +02:00
2020-09-29 16:13:03 -07:00
2022-11-08 10:43:47 -08:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-06-12 08:04:30 -07:00
2021-07-23 11:22:43 -07:00
2021-07-23 11:22:43 -07:00
2018-10-21 19:55:09 +03:00
2023-04-14 21:20:23 +02:00
2022-03-13 15:07:33 -07:00
2022-03-12 08:28:32 -08:00
2021-07-23 11:16:00 -07:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2022-06-04 14:19:05 -07:00