@@ -2094,6 +2094,15 @@ void bluetooth::deviceDiscovered(const QBluetoothDeviceInfo &device) {
20942094 connect (lifespanTreadmill, &lifespantreadmill::inclinationChanged, this , &bluetooth::inclinationChanged);
20952095 lifespanTreadmill->deviceDiscovered (b);
20962096 this ->signalBluetoothDeviceConnected (lifespanTreadmill);
2097+ } else if (b.name ().startsWith (QStringLiteral (" AT-R" )) && !mobiRower && filter) {
2098+ this ->setLastBluetoothDevice (b);
2099+ this ->stopDiscovery ();
2100+ mobiRower = new mobirower (noWriteResistance, noHeartService);
2101+ emit deviceConnected (b);
2102+ connect (mobiRower, &bluetoothdevice::connectedAndDiscovered, this ,
2103+ &bluetooth::connectedAndDiscovered);
2104+ mobiRower->deviceDiscovered (b);
2105+ this ->signalBluetoothDeviceConnected (mobiRower);
20972106 } else if ((b.name ().toUpper ().startsWith (QStringLiteral (" ECH-ROW" )) ||
20982107 b.name ().toUpper ().startsWith (QStringLiteral (" ROWSPORT" )) ||
20992108 b.name ().toUpper ().startsWith (QStringLiteral (" ROW-S" ))) &&
@@ -3605,6 +3614,11 @@ void bluetooth::restart() {
36053614 delete echelonRower;
36063615 echelonRower = nullptr ;
36073616 }
3617+ if (mobiRower) {
3618+
3619+ delete mobiRower;
3620+ mobiRower = nullptr ;
3621+ }
36083622 if (echelonStride) {
36093623
36103624 delete echelonStride;
@@ -4040,6 +4054,8 @@ bluetoothdevice *bluetooth::device() {
40404054 return echelonConnectSport;
40414055 } else if (echelonRower) {
40424056 return echelonRower;
4057+ } else if (mobiRower) {
4058+ return mobiRower;
40434059 } else if (echelonStride) {
40444060 return echelonStride;
40454061 } else if (echelonStairclimber) {
0 commit comments