Changeset 9397dbb in subsurface


Ignore:
Timestamp:
Jul 14, 2017, 10:43:13 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
9b7d321
Parents:
a0c6ceeb
git-author:
Jan Mulder <jlmulder@…> (07/13/17 11:48:52)
git-committer:
Dirk Hohndel <dirk@…> (07/14/17 22:43:13)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/btdiscovery.cpp

    rbec5f3c r9397dbb  
    2020                else if (btName.mid(4,2) == "3+") product = "OSTC 3+";
    2121                else if (btName.mid(4,2) == "s#") product = "OSTC Sport";
     22                else if (btName.mid(4,2) == "s ") product = "OSTC Sport";
    2223                else if (btName.mid(4,2) == "4-") product = "OSTC 4";
    2324                else if (btName.mid(4,2) == "2-") product = "OSTC 2N";
Note: See TracChangeset for help on using the changeset viewer.