BT Discovery: add Shearwater Petrel and Perdix

Add Shearwater Petrel and Perdix to automatic detection

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-06-12 20:29:19 +02:00 committed by Dirk Hohndel
parent be8f20dda6
commit 8cd711f8e2

View file

@ -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]);