From c7b7c3f69168c1056c74bd2b240223874ab68294 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 5 Oct 2023 21:25:51 +0200 Subject: [PATCH] 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 --- core/btdiscovery.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 9fe071506..23802ae69 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -108,7 +108,8 @@ static dc_descriptor_t *getDeviceType(QString btName) // but that seems to be just happenstance. vendor = "Ratio"; 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, // eventhough the physical model states iX3M. vendor = "Ratio";