summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2020-02-16 08:57:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-16 12:52:56 -0800
commit6df46a25a38fab167b0cd378c2ee563b6ea8f65a (patch)
treebfb9b07afa77f9052900b2b337b973b083268272 /core
parent66a2b2e133608fdb8635560c64bbf6121662872e (diff)
downloadsubsurface-6df46a25a38fab167b0cd378c2ee563b6ea8f65a.tar.gz
Add Cressi BLE name filtering for bluetooth discovery
.. and update the libdivecomputer submodule to have them marked as BLE capable. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core')
-rw-r--r--core/btdiscovery.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index ea76d3b1d..ce12f40d6 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -82,6 +82,16 @@ static dc_descriptor_t *getDeviceType(QString btName)
product = "Genius";
}
+ if (btName.startsWith("CARTESIO_")) {
+ vendor = "Cressi";
+ product = "Cartesio";
+ }
+
+ if (btName.startsWith("GOA_")) {
+ vendor = "Cressi";
+ product = "Goa";
+ }
+
// The Pelagic dive computers (generally branded as Oceanic or Aqualung)
// show up with a two-byte model code followed by six bytes of serial
// number. The model code matches the hex model (so "FQ" is 0x4651,