1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

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>
This commit is contained in:
Dirk Hohndel 2018-07-02 09:24:26 -07:00
parent 90569e0ee6
commit 988d6682f2

View file

@ -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