diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/libdivecomputer.c | 6 | ||||
-rw-r--r-- | core/libdivecomputer.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 9a5b30087..51fc6f8b8 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -1342,6 +1342,12 @@ dc_status_t divecomputer_device_open(device_data_t *data) return rc; } + if (transports & DC_TRANSPORT_USBSTORAGE) { + rc = dc_usb_storage_open(&data->iostream, context, data->devname); + if (rc == DC_STATUS_SUCCESS) + return rc; + } + return DC_STATUS_UNSUPPORTED; } diff --git a/core/libdivecomputer.h b/core/libdivecomputer.h index 050834195..e1964eb9a 100644 --- a/core/libdivecomputer.h +++ b/core/libdivecomputer.h @@ -15,6 +15,7 @@ // Even if we have an old libdivecomputer, Uemis uses this #ifndef DC_TRANSPORT_USBSTORAGE #define DC_TRANSPORT_USBSTORAGE (1 << 6) +#define dc_usb_storage_open(stream, context, devname) (DC_STATUS_UNSUPPORTED) #endif #include "dive.h" |