summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-19 21:50:36 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-19 21:50:36 -0700
commit52cb38e5405bb402da45bdfcc5ba18d2225b0378 (patch)
tree8d3b7388b89ac7659f4e618a5053f73f4556d77d /core/btdiscovery.cpp
parent318ddc72276dc297bda75789d6eafcddb754b11c (diff)
downloadsubsurface-52cb38e5405bb402da45bdfcc5ba18d2225b0378.tar.gz
Bluetooth: autodetect Shearwater NERD models
This should allow it to work with Subsurface-mobile as well. Fixes #2187 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 0af809c6d..2a3eff580 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -38,12 +38,15 @@ static dc_descriptor_t *getDeviceType(QString btName)
if (btName.startsWith("Predator") ||
btName.startsWith("Petrel") ||
btName.startsWith("Perdix") ||
- btName.startsWith("Teric")) {
+ btName.startsWith("Teric") ||
+ btName.startsWith("NERD")) {
vendor = "Shearwater";
if (btName.startsWith("Petrel")) product = "Petrel"; // or petrel 2?
if (btName.startsWith("Perdix")) product = "Perdix";
if (btName.startsWith("Predator")) product = "Predator";
if (btName.startsWith("Teric")) product = "Teric";
+ if (btName.startsWith("NERD")) product = "Nerd"; // next line might override this
+ if (btName.startsWith("NERD 2")) product = "Nerd 2";
}
if (btName.startsWith("EON Steel")) {