Skip to content

Commit

Permalink
Proform 225CSX resistance does not work #1903
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Dec 28, 2023
1 parent 76deb91 commit 2cb4187
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/proformbike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,12 +764,14 @@ void proformbike::update() {
counterPoll++;
if (counterPoll > 6) {
counterPoll = 0;
} else if(counterPoll == 6 && proform_bike_225_csx) {
counterPoll = 0;
} else if (counterPoll == 6 &&
(proform_tour_de_france_clc || proform_cycle_trainer_400 || proform_bike_PFEVEX71316_1) &&
requestResistance == -1) {
// this bike sends the frame noOpData7 only when it needs to change the resistance
counterPoll = 0;
} else if (counterPoll == 5 && (nordictrack_gx_2_7 || proform_cycle_trainer_300_ci || proform_hybrid_trainer_PFEL03815 || proform_bike_sb || proform_bike_225_csx)) {
} else if (counterPoll == 5 && (nordictrack_gx_2_7 || proform_cycle_trainer_300_ci || proform_hybrid_trainer_PFEL03815 || proform_bike_sb)) {
counterPoll = 0;
}

Expand Down

0 comments on commit 2cb4187

Please sign in to comment.