mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:33:24 +00:00
core: recognize Oceanic Pro Plus X over BLE
Just like with the Aqualung i770R in 7697003498
this name follows the
pattern of a model number in ASCII encoding, followed by the serial
number of the device.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
10a0393b1b
commit
6ba1cf8cf7
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
|||
product = "i770R";
|
||||
}
|
||||
|
||||
if (btName.contains(QRegularExpression("^ER\\d{6}$"))) {
|
||||
vendor = "Oceanic";
|
||||
product = "Pro Plus X";
|
||||
}
|
||||
|
||||
if (!vendor.isEmpty() && !product.isEmpty())
|
||||
return descriptorLookup.value(vendor + product);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue