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 | |
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>
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | core/btdiscovery.cpp | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ff47f690..e461c535d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +Mobile: ensure that all BT/BLE flavors of the OSTC are recognized as dive computers [#2358] Desktop: allow copy&pasting of multiple cylinders [#2386] Desktop: don't output random SAC values for cylinders without data [#2376] Mobile: add menu entry to start a support email, using native email client 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") || |