summaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-11 21:32:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-11 21:32:04 -0700
commite6cb98ea4be1c905cb01b58ebd9a2d4f573e4f5b (patch)
treedd602158c5d195991510f5ec7f68871386a0e6ea /core/libdivecomputer.c
parent387aee4cdf5f6c7255312d144346e37905315426 (diff)
downloadsubsurface-e6cb98ea4be1c905cb01b58ebd9a2d4f573e4f5b.tar.gz
iOS: only DC_TRANSPORT_BLE is supported
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r--core/libdivecomputer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index bb5325074..28daefe0b 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1231,6 +1231,10 @@ static char *transport_to_string(int t)
*/
unsigned int get_supported_transports(device_data_t *data)
{
+#if defined(Q_OS_IOS)
+ // BLE only - don't bother with being clever.
+ return DC_TRANSPORT_BLE;
+#endif
// start out with the list of transports that libdivecomputer claims to support
// dc_context_get_transports ignores its context argument...
unsigned int supported = dc_context_get_transports(NULL);
@@ -1242,10 +1246,6 @@ unsigned int get_supported_transports(device_data_t *data)
#if defined(BLE_SUPPORT)
supported |= DC_TRANSPORT_BLE;
#endif
-#if defined(Q_OS_IOS)
- // libdivecomputer always claims to support serial, but on iOS we actually don't support that
- supported &= ~DC_TRANSPORT_SERIAL;
-#endif
if (data) {
/*