Skip to content

Commit

Permalink
Peloton Resistance is not following the Targeted Peloton Resistance w…
Browse files Browse the repository at this point in the history
…hen using the "lower" option #1668
  • Loading branch information
cagnulein committed Oct 30, 2023
1 parent 5f18620 commit b77ed2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/echelonconnectsport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void echelonconnectsport::serviceDiscovered(const QBluetoothUuid &gatt) {

resistance_t echelonconnectsport::pelotonToBikeResistance(int pelotonResistance) {
for (resistance_t i = 1; 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 b77ed2a

Please sign in to comment.