mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Actually tie in the new libdivecomputer IO model to open the dive computer device
This creates a new libdivecomputer_device_open() helper, and makes downloading and configuration use it to open the dive computer device using the proper protocol. The IRDA case was tested by Sébastien Dugué - I had initially left it undone believing that "nobody uses IRDA". Reported-and-tested-by: Sébastien Dugué <sebastien.dugue.subsurface@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
13f5c75ac4
commit
acc343834a
3 changed files with 92 additions and 11 deletions
|
@ -635,11 +635,7 @@ QString ConfigureDiveComputer::dc_open(device_data_t *data)
|
|||
fprintf(data->libdc_logfile, "built with libdivecomputer v%s\n", dc_version(NULL));
|
||||
}
|
||||
|
||||
if (data->bluetooth_mode) {
|
||||
#if defined(BT_SUPPORT)
|
||||
rc = ble_packet_open(&data->iostream, data->context, data->devname, data);
|
||||
#endif
|
||||
}
|
||||
rc = divecomputer_device_open(data);
|
||||
|
||||
if (rc != DC_STATUS_SUCCESS) {
|
||||
report_error(errmsg(rc));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue