Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/devices/horizontreadmill/horizontreadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2621,6 +2621,11 @@ void horizontreadmill::serviceScanDone(void) {
qDebug() << s << "skipping (DOMYOS-TC will use only FTMS)";
continue;
}
// FS- beta devices: discover only FTMS (1826) to avoid issues with other services
if (FS_BETA_TREADMILL && s != _FTMSServiceId) {
qDebug() << s << "skipping (FS- beta: using only FTMS 0x1826)";
continue;
}

qDebug() << s << "discovering...";
gattCommunicationChannelService.append(m_control->createServiceObject(s));
Expand Down Expand Up @@ -2779,6 +2784,10 @@ void horizontreadmill::deviceDiscovered(const QBluetoothDeviceInfo &device) {
qDebug() << QStringLiteral("FS- treadmill found");
FS_TREADMILL = true;
maxInclination = 40.0;
if (device.name().contains(QStringLiteral("(beta)"))) {
qDebug() << QStringLiteral("FS- beta treadmill: will use only FTMS service (0x1826)");
FS_BETA_TREADMILL = true;
}
}

if (device.name().toUpper().startsWith(QStringLiteral("TRX3500"))) {
Expand Down
1 change: 1 addition & 0 deletions src/devices/horizontreadmill/horizontreadmill.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class horizontreadmill : public treadmill {
bool TM4500 = false;
bool TM6500 = false;
bool FS_TREADMILL = false;
bool FS_BETA_TREADMILL = false;
bool WT_TREADMILL = false;
bool THERUN_T15 = false;
bool MERACH_TREADMILL = false;
Expand Down
Loading