summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-06-12 20:29:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-12 19:12:40 -0700
commit8cd711f8e200c25377c2cc52f3516c9a633a0655 (patch)
treedf1497ff786a53437825b979c01732e7c4fce2c5 /core/btdiscovery.cpp
parentbe8f20dda656931698d7e9cfb1a15c3b1884b7ff (diff)
downloadsubsurface-8cd711f8e200c25377c2cc52f3516c9a633a0655.tar.gz
BT Discovery: add Shearwater Petrel and Perdix
Add Shearwater Petrel and Perdix to automatic detection Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 2362c5b4b..4e22d45f5 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -26,6 +26,12 @@ static dc_descriptor_t *getDeviceType(QString btName)
else product = "OSTC 3"; // all OSTCs are HW_FAMILY_OSTC_3
}
+ if (btName.startsWith("Petrel") || btName.startsWith("Perdix")) {
+ vendor = "Shearwater";
+ if (btName.startsWith("Petrel")) product = "Petrel"; // or petrel 2?
+ if (btName.startsWith("Perdix")) product = "Perdix";
+ }
+
if (!vendor.isEmpty() && !product.isEmpty())
return(descriptorLookup[vendor + product]);