Bluetooth: autodetect Shearwater NERD models

This should allow it to work with Subsurface-mobile as well.

Fixes #2187

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-07-19 21:50:36 -07:00
parent 318ddc7227
commit 52cb38e540

View file

@ -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")) {