From 6df46a25a38fab167b0cd378c2ee563b6ea8f65a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 16 Feb 2020 08:57:00 -0800 Subject: [PATCH] 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 ++++++++++ libdivecomputer | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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 index ebbb91142..4e809aefd 160000 --- a/libdivecomputer +++ b/libdivecomputer @@ -1 +1 @@ -Subproject commit ebbb91142781ce5bcfc055f5b9439835c4c9d947 +Subproject commit 4e809aefd89e67da14d55c8587f1ba001486af2a