From e6cb98ea4be1c905cb01b58ebd9a2d4f573e4f5b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 11 May 2018 21:32:04 -0700 Subject: iOS: only DC_TRANSPORT_BLE is supported Signed-off-by: Dirk Hohndel --- core/libdivecomputer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core') 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) { /* -- cgit v1.2.3-70-g09d2