File tree Expand file tree Collapse file tree
src/devices/horizontreadmill Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1279,10 +1279,10 @@ void horizontreadmill::forceSpeed(double requestSpeed) {
12791279 if (BOWFLEX_T9 ) {
12801280 requestSpeed *= miles_conversion; // this treadmill wants the speed in miles, at least seems so!!
12811281 }
1282- if (TM4800 || TM6500 || T3G_ELITE || WT_TREADMILL || THERUN_T15 || MERACH_TREADMILL ) {
1282+ if (TM4800 || TM6500 || T3G_ELITE || WT_TREADMILL || THERUN_T15 || MERACH_TREADMILL || JFTM_T202 ) {
12831283 bool miles = settings.value (QZSettings::miles_unit, QZSettings::default_miles_unit).toBool ();
1284- if (miles) {
1285- requestSpeed *= miles_conversion; // these treadmills want the speed in miles when miles_unit is enabled
1284+ if (miles || JFTM_T202 ) {
1285+ requestSpeed *= miles_conversion; // JFTM T202 expects FTMS target speed in miles
12861286 }
12871287 }
12881288 uint16_t speed_int = round (requestSpeed * 100 );
@@ -2656,6 +2656,7 @@ void horizontreadmill::deviceDiscovered(const QBluetoothDeviceInfo &device) {
26562656 {
26572657 QSettings settings;
26582658 bluetoothDevice = device;
2659+ JFTM_T202 = device.name ().toUpper ().startsWith (QStringLiteral (" JFTM T202" ));
26592660
26602661 if (device.name ().toUpper ().startsWith (QStringLiteral (" MOBVOI TMP" ))) {
26612662 mobvoi_tmp_treadmill = true ;
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ class horizontreadmill : public treadmill {
121121 bool FIT_TM = false ;
122122 bool T3G_PRO = false ;
123123 bool T3G_ELITE = false ;
124+ bool JFTM_T202 = false ;
124125 bool TP1 = false ;
125126 bool T01 = false ;
126127 bool TM4800 = false ;
You can’t perform that action at this time.
0 commit comments