mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
btdiscovery - Add second matcher for Ratio iX3M
New (late 2020) iX3M hardware (refered to as 'iX3m with Sequared Buttons' in the Ratio support section) appears to identify as iX5M, both in the Bluetooth name and reported revision e.g. $ ./ratio-toolbox-x86_64.AppImage info | head -n2 Model: Ratio® iX5M GPS TECH+ Firmware version: 4.1.26/016 (English) Add a second Bluetooth name matcher for this variation, returning the same (generic) model as is currently used. Signed-off-by: Damian Zaremba <damian@damianzaremba.co.uk>
This commit is contained in:
parent
de62638b73
commit
bd6c874be0
1 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,11 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
|||
// but that seems to be just happenstance.
|
||||
vendor = "Ratio";
|
||||
product = "iX3M GPS Easy"; // we don't know which of the GPS models, so set one
|
||||
} else if (btName.contains(QRegularExpression("^IX5M\\d{6}"))) {
|
||||
// The 2021 iX3M models (square buttons) report as iX5M,
|
||||
// eventhough the physical model states iX3M.
|
||||
vendor = "Ratio";
|
||||
product = "iX3M GPS Easy"; // we don't know which of the GPS models, so set one
|
||||
} else if (btName == "COSMIQ") {
|
||||
vendor = "Deepblu";
|
||||
product = "Cosmiq+";
|
||||
|
|
Loading…
Add table
Reference in a new issue