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:
Damian Zaremba 2021-01-10 19:25:52 +01:00 committed by Dirk Hohndel
parent de62638b73
commit bd6c874be0

View file

@ -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+";