Skip to content

Commit

Permalink
Cannot connect to ESLinker treadmill (Issue #2628)
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Oct 23, 2024
1 parent 1cb2008 commit 8199dea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/devices/eslinkertreadmill/eslinkertreadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,7 @@ void eslinkertreadmill::characteristicChanged(const QLowEnergyCharacteristic &ch
lastSpeed = speed;
lastInclination = incline;
}
} else if (treadmill_type == COSTAWAY || treadmill_type == TYPE::ESANGLINKER) {
if(treadmill_type == TYPE::ESANGLINKER) {
if((uint8_t)newValue.at(1) != 0xe0)
return;
}

} else if (treadmill_type == COSTAWAY || (treadmill_type == TYPE::ESANGLINKER && (uint8_t)newValue.at(1) == 0xe0)) {
const double miles = 1.60934;
if(((uint8_t)newValue.at(3)) == 0xFF && treadmill_type == COSTAWAY)
Speed = 0;
Expand Down

0 comments on commit 8199dea

Please sign in to comment.