diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-02-16 08:57:00 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-16 12:52:56 -0800 |
commit | 6df46a25a38fab167b0cd378c2ee563b6ea8f65a (patch) | |
tree | bfb9b07afa77f9052900b2b337b973b083268272 | |
parent | 66a2b2e133608fdb8635560c64bbf6121662872e (diff) | |
download | subsurface-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.cpp | 10 | ||||
m--------- | libdivecomputer | 0 |
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 |