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:
Dirk Hohndel 2018-12-20 19:03:09 -08:00
parent 10a0393b1b
commit 6ba1cf8cf7

View file

@ -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);