Skip to content

Commit d6b926e

Browse files
committed
Route XCX bikes to Sports Plus
1 parent 3e6c278 commit d6b926e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/devices/bluetooth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,6 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
19821982
(b.name().toUpper().startsWith("ROBX")) ||
19831983
(b.name().toUpper().startsWith("ORLAUF_ARES")) ||
19841984
(b.name().toUpper().startsWith("SPEEDMAGPRO")) ||
1985-
(b.name().toUpper().startsWith("XCX-")) ||
19861985
(b.name().toUpper().startsWith("SMARTBIKE-")) ||
19871986
(b.name().toUpper().startsWith("D500V2")) ||
19881987
(b.name().toUpper().startsWith("FBIKE-HEAVY-PRO")) ||
@@ -2479,6 +2478,7 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
24792478
sportsTechRower->deviceDiscovered(b);
24802479
this->signalBluetoothDeviceConnected(sportsTechRower);
24812480
} else if ((b.name().toUpper().startsWith(QStringLiteral("CARDIOFIT")) ||
2481+
b.name().toUpper().startsWith(QStringLiteral("XCX-")) ||
24822482
((b.name().toUpper().startsWith(QStringLiteral("HT")) && b.name().length() == 10) &&
24832483
ftms_bike.contains(QZSettings::default_ftms_bike)) ||
24842484
(b.name().toUpper().contains(QStringLiteral("CARE")) &&

tst/Devices/devicetestdataindex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ void DeviceTestDataIndex::Initialize() {
11601160
// Sports Plus Bike
11611161
RegisterNewDeviceTestData(DeviceIndex::SportsPlusBike)
11621162
->expectDevice<sportsplusbike>()
1163-
->acceptDeviceName("CARDIOFIT", DeviceNameComparison::StartsWithIgnoreCase);
1163+
->acceptDeviceNames({"CARDIOFIT", "XCX-"}, DeviceNameComparison::StartsWithIgnoreCase);
11641164

11651165
// Sports Plus Rower
11661166
RegisterNewDeviceTestData(DeviceIndex::SportsPlusRower)

0 commit comments

Comments
 (0)