Skip to content

Commit d27b658

Browse files
authored
[codex] Fix Adidas treadmill incline override mapping (#4782)
* Add Adidas horizon treadmill incline limits * Bypass incline override reverse for Adidas treadmills
1 parent d6828b7 commit d27b658

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/devices/horizontreadmill/horizontreadmill.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ void horizontreadmill::update() {
987987
requestSpeed = -1;
988988
}
989989
if (requestInclination != -100) {
990-
if (!FS_TREADMILL || !areInclinationSettingsDefault()) {
990+
if (!adidas_treadmill && (!FS_TREADMILL || !areInclinationSettingsDefault())) {
991991
requestInclination = treadmillInclinationOverrideReverse(requestInclination);
992992
}
993993

@@ -2690,6 +2690,7 @@ void horizontreadmill::deviceDiscovered(const QBluetoothDeviceInfo &device) {
26902690
minInclination = -6.0;
26912691
qDebug() << QStringLiteral("SOLE TT8 TREADMILL workaround ON!");
26922692
} else if (device.name().toUpper().startsWith(QStringLiteral("ADIDAS"))) {
2693+
adidas_treadmill = true;
26932694
minInclination = -6.0;
26942695
maxInclination = 40.0;
26952696
qDebug() << QStringLiteral("ADIDAS TREADMILL workaround ON!");

src/devices/horizontreadmill/horizontreadmill.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class horizontreadmill : public treadmill {
103103
bool trx3500_treadmill = false;
104104
bool sole_f85_treadmill = false;
105105
bool sole_f89_treadmill = false;
106+
bool adidas_treadmill = false;
106107
bool schwinn_810_treadmill = false;
107108
bool yesoul_treadmill = false;
108109
bool technogymrun = false;

0 commit comments

Comments
 (0)