diff options
author | Damian Zaremba <damian@damianzaremba.co.uk> | 2021-01-10 19:25:52 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 13:44:16 -0800 |
commit | bd6c874be0e89aa0d2b6cb2e33895961364e231e (patch) | |
tree | 8df2665645a19d02459b6b0924f68c7a9350db5f /core | |
parent | de62638b73e91520096d93ed155a627a05a6b005 (diff) | |
download | subsurface-bd6c874be0e89aa0d2b6cb2e33895961364e231e.tar.gz |
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/btdiscovery.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 73a0ab803..a979bd2d9 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -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+"; |