diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-07-02 09:24:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-02 09:24:30 -0700 |
commit | 988d6682f201ac39796d4f351340783a6c59b053 (patch) | |
tree | 85785fa45ba5ae193dd478543b816b59a575d8d2 /core/btdiscovery.cpp | |
parent | 90569e0ee66a61e33938fc952e0755ccd790b9de (diff) | |
download | subsurface-988d6682f201ac39796d4f351340783a6c59b053.tar.gz |
Correctly recognize more OSTC variants as BLE
Some OSTC 2 and OSTC Plus variants show 'OSTC+ xxxxx' as BLE name and we
recognized this as OSTC 3 (but that one doesn't support BLE). With this
we recognize these models as OSTC 2 (which is identical from a download
perspective to the OSTC Plus) and both of those support BLE.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index a96deb6fd..055485a32 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -23,6 +23,7 @@ static dc_descriptor_t *getDeviceType(QString btName) else if (btName.mid(4,2) == "s ") product = "OSTC Sport"; 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 |