From 8cd711f8e200c25377c2cc52f3516c9a633a0655 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Mon, 12 Jun 2017 20:29:19 +0200 Subject: BT Discovery: add Shearwater Petrel and Perdix Add Shearwater Petrel and Perdix to automatic detection Signed-off-by: Jan Mulder --- core/btdiscovery.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/btdiscovery.cpp') 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]); -- cgit v1.2.3-70-g09d2