From cef6dff762fa8bd6bd62db1c1b6af1a6f375406d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 11 May 2018 22:18:16 -0700 Subject: BLE: add EON Core and Mares Bluelink to detection Detection isn't required, but it makes things easier. For the Mares dive computers we only see the Bluelink, so we can't tell which dive computer is connected to it. We guess "Quad", but the user can pick a different one. Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/btdiscovery.cpp') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 1848b8442..ba4d7b1ce 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -40,12 +40,24 @@ static dc_descriptor_t *getDeviceType(QString btName) product = "EON Steel"; } + if (btName.startsWith("EON Core")) { + vendor = "Suunto"; + product = "EON Core"; + } + if (btName.startsWith("G2") || btName.startsWith("Aladin")) { vendor = "Scubapro"; if (btName.startsWith("G2")) product = "G2"; if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix"; } + if (btName == "Mares bluelink pro") { + vendor = "Mares"; + // we don't know which of the dive computers it is, + // so let's just randomly pick one + product = "Quad"; + } + if (!vendor.isEmpty() && !product.isEmpty()) return descriptorLookup.value(vendor + product); -- cgit v1.2.3-70-g09d2