mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Add support for the new Ratio bluetooth name
The new Ratio iX3M 2 models use "RATIO-" as the prefix in the bluetooth name instead of "IX5M". Signed-off-by: Jef Driesen <jef@libdivecomputer.org>
This commit is contained in:
parent
3c5f22ac25
commit
c7b7c3f691
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
||||||
// but that seems to be just happenstance.
|
// but that seems to be just happenstance.
|
||||||
vendor = "Ratio";
|
vendor = "Ratio";
|
||||||
product = "iX3M 2021 GPS Easy"; // we don't know which of the Bluetooth models, so set one that supports BLE
|
product = "iX3M 2021 GPS Easy"; // we don't know which of the Bluetooth models, so set one that supports BLE
|
||||||
} else if (btName.contains(QRegularExpression("^IX5M\\d{6}"))) {
|
} else if (btName.contains(QRegularExpression("^IX5M\\d{6}")) ||
|
||||||
|
btName.contains(QRegularExpression("^RATIO-\\d{6}"))) {
|
||||||
// The 2021 iX3M models (square buttons) report as iX5M,
|
// The 2021 iX3M models (square buttons) report as iX5M,
|
||||||
// eventhough the physical model states iX3M.
|
// eventhough the physical model states iX3M.
|
||||||
vendor = "Ratio";
|
vendor = "Ratio";
|
||||||
|
|
Loading…
Reference in a new issue