diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-11-21 03:38:35 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-22 16:53:29 -0800 |
commit | c36513a9f3e77b58256e750652065c45dac0b9f8 (patch) | |
tree | 734d064b39b966d88afb2e6e3e1ffe4206e95b09 /core/btdiscovery.cpp | |
parent | bde45373200414441cf6a81aad3c681978682970 (diff) | |
download | subsurface-c36513a9f3e77b58256e750652065c45dac0b9f8.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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") || |