From 7273161acf294b78a48e193d57088430aa5cf3da Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 25 Oct 2019 07:25:03 -0400 Subject: Mares: add BT discovery logic We don't have the "show all dive computers" logic on mobile, so we need something like this. Possibly we should use the libdivecomputer matching code if it exists, but that's a much bigger change, let's do this incremental one for now. Signed-off-by: Linus Torvalds --- core/btdiscovery.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/btdiscovery.cpp') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 8db1e02cc..36c1b4b9c 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -71,11 +71,14 @@ static dc_descriptor_t *getDeviceType(QString btName) if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix"; } - if (btName == "Mares bluelink pro") { + if (btName.startsWith("Mares")) { vendor = "Mares"; // we don't know which of the dive computers it is, // so let's just randomly pick one product = "Quad"; + // Some we can pick out directly + if (btName == "Mares Genius") + product = "Genius"; } // The Pelagic dive computers (generally branded as Oceanic or Aqualung) -- cgit v1.2.3-70-g09d2