summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-08-18 12:55:02 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-08-18 12:56:04 -0700
commitcc5ae1911befd6217989d5b6ffe7d311f64e659f (patch)
tree0f35f273b618f2578403b007a1d80380f0195a03 /core
parentf24fe107655acaed8a0765d70100d351e9e38706 (diff)
downloadsubsurface-cc5ae1911befd6217989d5b6ffe7d311f64e659f.tar.gz
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>
Diffstat (limited to 'core')
-rw-r--r--core/btdiscovery.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 7dfac0ad1..bae2ff3e4 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -94,12 +94,21 @@ static dc_descriptor_t *getDeviceType(QString btName)
} else if (btName.contains(QRegularExpression("^FR\\d{6}$"))) {
vendor = "Aqualung";
product = "i550C";
- } else if (btName.contains(QRegularExpression("^ER\\d{6}$"))) {
- vendor = "Oceanic";
- product = "Pro Plus X";
} else if (btName.contains(QRegularExpression("^FS\\d{6}$"))) {
vendor = "Oceanic";
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}"))) {
// The Ratio bluetooth name looks like the Pelagic ones,
// but that seems to be just happenstance.
@@ -114,6 +123,9 @@ static dc_descriptor_t *getDeviceType(QString btName)
} else if (btName.startsWith("McLean Extreme")) {
vendor = "McLean";
product = "Extreme";
+ } else if (btName.startsWith("DiveComputer")) {
+ vendor = "Tecdiving";
+ product = "DiveComputer.eu";
}
// check if we found a known dive computer