From bd6c874be0e89aa0d2b6cb2e33895961364e231e Mon Sep 17 00:00:00 2001 From: Damian Zaremba Date: Sun, 10 Jan 2021 19:25:52 +0100 Subject: btdiscovery - Add second matcher for Ratio iX3M MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/btdiscovery.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') 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+"; -- cgit v1.2.3-70-g09d2