summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--core/btdiscovery.cpp10
m---------libdivecomputer0
2 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,
diff --git a/libdivecomputer b/libdivecomputer
-Subproject ebbb91142781ce5bcfc055f5b9439835c4c9d94
+Subproject 4e809aefd89e67da14d55c8587f1ba001486af2