From 9397dbb432b3ce6d6e507370a32fd7c83b563466 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Thu, 13 Jul 2017 20:48:52 +0200 Subject: [PATCH] Correct BT detect for OSTC Sport Apparently, OSTC Sport has a BT name like OSTCs. 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 --- core/btdiscovery.cpp | 1 + 1 file changed, 1 insertion(+) 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,