From c36513a9f3e77b58256e750652065c45dac0b9f8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Nov 2019 03:38:35 -0800 Subject: Core: don't prevent some OSTC models from being recognized The code seemed to do something really reasonable by picking one of the supported OSTC versions - except that the one it picked didn't support BT/BLE and therefore our logic of recognizing dive computers on iOS failed. Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 80e2285b8..ea76d3b1d 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -30,9 +30,10 @@ static dc_descriptor_t *getDeviceType(QString btName) else if (btName.mid(4,2) == "4-") product = "OSTC 4"; else if (btName.mid(4,2) == "2-") product = "OSTC 2N"; else if (btName.mid(4,2) == "+ ") product = "OSTC 2"; - // all OSTCs are HW_FAMILY_OSTC_3, so when we do not know, - // just try this - else product = "OSTC 3"; // all OSTCs are HW_FAMILY_OSTC_3 + // all BT/BLE enabled OSTCs are HW_FAMILY_OSTC_3, so when we do not know, + // just use a default product that allows the codoe to download from the + // user's dive computer + else product = "OSTC 2"; } if (btName.startsWith("Predator") || -- cgit v1.2.3-70-g09d2