mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
core/bt-discovery: recognize BT names of four more dive computers
This adds the Oceanic Veo 4.0 & Pro Plus 4, the Sherwood Wisdom 4 and the Tecdiving DiveComputer.eu to our list of known names. The Oceanic Pro Plus X detection is simply moved to have the other names in a more logical order. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f24fe10765
commit
cc5ae1911b
1 changed files with 15 additions and 3 deletions
|
@ -94,12 +94,21 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
||||||
} else if (btName.contains(QRegularExpression("^FR\\d{6}$"))) {
|
} else if (btName.contains(QRegularExpression("^FR\\d{6}$"))) {
|
||||||
vendor = "Aqualung";
|
vendor = "Aqualung";
|
||||||
product = "i550C";
|
product = "i550C";
|
||||||
} else if (btName.contains(QRegularExpression("^ER\\d{6}$"))) {
|
|
||||||
vendor = "Oceanic";
|
|
||||||
product = "Pro Plus X";
|
|
||||||
} else if (btName.contains(QRegularExpression("^FS\\d{6}$"))) {
|
} else if (btName.contains(QRegularExpression("^FS\\d{6}$"))) {
|
||||||
vendor = "Oceanic";
|
vendor = "Oceanic";
|
||||||
product = "Geo 4.0";
|
product = "Geo 4.0";
|
||||||
|
} else if (btName.contains(QRegularExpression("^FT\\d{6}$"))) {
|
||||||
|
vendor = "Oceanic";
|
||||||
|
product = "Veo 4.0";
|
||||||
|
} else if (btName.contains(QRegularExpression("^FU\\d{6}$"))) {
|
||||||
|
vendor = "Sherwood";
|
||||||
|
product = "Wisdom 4";
|
||||||
|
} else if (btName.contains(QRegularExpression("^FV\\d{6}$"))) {
|
||||||
|
vendor = "Oceanic";
|
||||||
|
product = "ProPlus 4";
|
||||||
|
} else if (btName.contains(QRegularExpression("^ER\\d{6}$"))) {
|
||||||
|
vendor = "Oceanic";
|
||||||
|
product = "Pro Plus X";
|
||||||
} else if (btName.contains(QRegularExpression("^DS\\d{6}"))) {
|
} else if (btName.contains(QRegularExpression("^DS\\d{6}"))) {
|
||||||
// The Ratio bluetooth name looks like the Pelagic ones,
|
// The Ratio bluetooth name looks like the Pelagic ones,
|
||||||
// but that seems to be just happenstance.
|
// but that seems to be just happenstance.
|
||||||
|
@ -114,6 +123,9 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
||||||
} else if (btName.startsWith("McLean Extreme")) {
|
} else if (btName.startsWith("McLean Extreme")) {
|
||||||
vendor = "McLean";
|
vendor = "McLean";
|
||||||
product = "Extreme";
|
product = "Extreme";
|
||||||
|
} else if (btName.startsWith("DiveComputer")) {
|
||||||
|
vendor = "Tecdiving";
|
||||||
|
product = "DiveComputer.eu";
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if we found a known dive computer
|
// check if we found a known dive computer
|
||||||
|
|
Loading…
Add table
Reference in a new issue