From 6df46a25a38fab167b0cd378c2ee563b6ea8f65a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 16 Feb 2020 08:57:00 -0800 Subject: 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 --- core/btdiscovery.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/btdiscovery.cpp') 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, -- cgit v1.2.3-70-g09d2