From b3c88d4defd412e36e089e538011e5d14e5dcef6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Aug 2020 10:24:20 -0700 Subject: [PATCH] core/BLE: detect Sherwater Peregrine Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index bae2ff3e4..c054b822f 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -38,6 +38,7 @@ static dc_descriptor_t *getDeviceType(QString btName) btName.startsWith("Petrel") || btName.startsWith("Perdix") || btName.startsWith("Teric") || + btName.startsWith("Peregrine") || btName.startsWith("NERD")) { vendor = "Shearwater"; // both the Petrel and Petrel 2 identify as "Petrel" as BT/BLE device @@ -47,6 +48,7 @@ static dc_descriptor_t *getDeviceType(QString btName) if (btName.startsWith("Perdix")) product = "Perdix"; if (btName.startsWith("Predator")) product = "Predator"; if (btName.startsWith("Teric")) product = "Teric"; + if (btName.startsWith("Peregrine")) product = "Peregrine"; if (btName.startsWith("NERD")) product = "Nerd"; // next line might override this if (btName.startsWith("NERD 2")) product = "Nerd 2"; } else if (btName.startsWith("EON Steel")) {