summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-13 20:48:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-15 14:43:13 +0900
commit9397dbb432b3ce6d6e507370a32fd7c83b563466 (patch)
tree70f328cf41c7566d5affd44ddd5256865b1ea9bf /core/btdiscovery.cpp
parenta0c6ceeb3d6219bdf003fd8dac8de5558846df48 (diff)
downloadsubsurface-9397dbb432b3ce6d6e507370a32fd7c83b563466.tar.gz
Correct BT detect for OSTC Sport
Apparently, OSTC Sport has a BT name like OSTCs<space><serial>. Small code addition to detect this properly. As long as we do not have an improved way of detection. Notice that most of the HWs use the same BT hardware, so simple detection on offered services will not work. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 71d6353c5..c25e6cfda 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -19,6 +19,7 @@ static dc_descriptor_t *getDeviceType(QString btName)
if (btName.mid(4,2) == "3#") product = "OSTC 3";
else if (btName.mid(4,2) == "3+") product = "OSTC 3+";
else if (btName.mid(4,2) == "s#") product = "OSTC Sport";
+ 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";
// all OSTCs are HW_FAMILY_OSTC_3, so when we do not know,