From 52cb38e5405bb402da45bdfcc5ba18d2225b0378 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 19 Jul 2019 21:50:36 -0700 Subject: Bluetooth: autodetect Shearwater NERD models This should allow it to work with Subsurface-mobile as well. Fixes #2187 Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")) { -- cgit v1.2.3-70-g09d2