Skip to content

Commit

Permalink
Conversion gain setting and conversion offset setting do not work wit…
Browse files Browse the repository at this point in the history
…h Tacx Neo 2 and Peloton. + resistance crashes when adjusted manually #1707
  • Loading branch information
cagnulein committed Oct 17, 2023
1 parent e8e6068 commit 94cfede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tacxneo2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ void tacxneo2::controllerStateChanged(QLowEnergyController::ControllerState stat

resistance_t tacxneo2::pelotonToBikeResistance(int pelotonResistance) {
for (resistance_t i = 0; i < max_resistance; i++) {
if (bikeResistanceToPeloton(i) <= pelotonResistance && bikeResistanceToPeloton(i + 1) >= pelotonResistance) {
if (bikeResistanceToPeloton(i) <= pelotonResistance && bikeResistanceToPeloton(i + 1) > pelotonResistance) {
return i;
}
}
Expand Down

0 comments on commit 94cfede

Please sign in to comment.