diff --git a/src/tacxneo2.cpp b/src/tacxneo2.cpp index 39ade2c86..9baa336c6 100644 --- a/src/tacxneo2.cpp +++ b/src/tacxneo2.cpp @@ -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; } }