@@ -649,6 +649,8 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
649649 bool sole_inclination =
650650 settings.value (QZSettings::sole_treadmill_inclination, QZSettings::default_sole_treadmill_inclination).toBool ();
651651 QString ftms_rower = settings.value (QZSettings::ftms_rower, QZSettings::default_ftms_rower).toString ();
652+ bool careBikeEnableSupport =
653+ settings.value (QZSettings::care_bike_enable_support, QZSettings::default_care_bike_enable_support).toBool ();
652654 QString ftms_bike = settings.value (QZSettings::ftms_bike, QZSettings::default_ftms_bike).toString ();
653655 QString ftms_treadmill = settings.value (QZSettings::ftms_treadmill, QZSettings::default_ftms_treadmill).toString ();
654656 QString ftms_elliptical = settings.value (QZSettings::ftms_elliptical, QZSettings::default_ftms_elliptical).toString ();
@@ -2482,7 +2484,7 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
24822484 ((b.name ().toUpper ().startsWith (QStringLiteral (" HT" )) && b.name ().length () == 10 ) &&
24832485 ftms_bike.contains (QZSettings::default_ftms_bike)) ||
24842486 (b.name ().toUpper ().contains (QStringLiteral (" CARE" )) &&
2485- b.name ().length () == 11 )) // CARE9040177 - Carefitness CV-351
2487+ ( b.name ().length () == 11 || careBikeEnableSupport) )) // CARE9040177 - Carefitness CV-351
24862488 && !sportsPlusBike && filter) {
24872489 this ->setLastBluetoothDevice (b);
24882490 this ->stopDiscovery ();
@@ -2498,7 +2500,8 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
24982500 // SLOT(inclinationChanged(double)));
24992501 sportsPlusBike->deviceDiscovered (b);
25002502 this ->signalBluetoothDeviceConnected (sportsPlusBike);
2501- } else if (((b.name ().toUpper ().contains (QStringLiteral (" CARE" )) && b.name ().length () >= 12 ) || // CARE968300122, CARE10692135
2503+ } else if (((b.name ().toUpper ().contains (QStringLiteral (" CARE" )) && b.name ().length () >= 12 &&
2504+ !careBikeEnableSupport) || // CARE968300122, CARE10692135
25022505 (b.name ().toUpper ().startsWith (QStringLiteral (" VMAX" ))))
25032506 && !sportsPlusRower && filter) {
25042507 this ->setLastBluetoothDevice (b);
0 commit comments