From ba31c56c78540942f9187cd5b9ed87b845819b9e Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 31 May 2019 10:09:14 -0700 Subject: Add BLE detection for the new Oceanic Geo 4.0 Note that we don't really have libdivecomputer support for it yet, only newly added model numbers etc. But the name detection should make it easier for people to at least download a memory dump. In addition to the libdivecomputer model number updates, this also has a merge of Jef's upstram libdivecomputer changes. Signed-off-by: Linus Torvalds --- core/btdiscovery.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 20dda1a39..d945dcf21 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -85,6 +85,11 @@ static dc_descriptor_t *getDeviceType(QString btName) product = "Pro Plus X"; } + if (btName.contains(QRegularExpression("^FS\\d{6}$"))) { + vendor = "Oceanic"; + product = "Geo 4.0"; + } + if (!vendor.isEmpty() && !product.isEmpty()) return descriptorLookup.value(vendor + product); -- cgit v1.2.3-70-g09d2