mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
318ddc7227
commit
52cb38e540
1 changed files with 4 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue