Skip to content

Commit 850e38d

Browse files
committed
Exclude CARE bikes from rower detection
1 parent 81807a2 commit 850e38d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/devices/bluetooth.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,8 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
24992499
// SLOT(inclinationChanged(double)));
25002500
sportsPlusBike->deviceDiscovered(b);
25012501
this->signalBluetoothDeviceConnected(sportsPlusBike);
2502-
} else if (((b.name().toUpper().contains(QStringLiteral("CARE")) && b.name().length() >= 12) || // CARE968300122, CARE10692135
2502+
} else if (((b.name().toUpper().contains(QStringLiteral("CARE")) && b.name().length() >= 12 &&
2503+
!sportsplusbike::isCareSportsPlusBike13Name(b.name())) || // CARE968300122, CARE10692135
25032504
(b.name().toUpper().startsWith(QStringLiteral("VMAX"))))
25042505
&& !sportsPlusRower && filter) {
25052506
this->setLastBluetoothDevice(b);

0 commit comments

Comments
 (0)