summaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
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) {
/*