mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <torvalds@linux-foundation.org>
This commit is contained in:
parent
4767349111
commit
ba31c56c78
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue