Skip to content

Commit

Permalink
moved the shift mode modifier back
Browse files Browse the repository at this point in the history
  • Loading branch information
doudar committed Aug 16, 2024
1 parent b3cdc44 commit 92513e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ SmartSpin_logfile.txt
.DS_Store
build/CMakeCache.txt
*.log
.DS_Store
5 changes: 2 additions & 3 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ void SS2K::maintenanceLoop(void *pvParameters) {

// send BLE notification for any userConfig values that changed.
BLE_ss2kCustomCharacteristic::parseNemit();

// If we're in ERG mode, modify shift commands to inc/dec the target watts instead.
ss2k->FTMSModeShiftModifier();
// If we have a resistance bike attached, slow down when we're close to the limits.
if (ss2k->pelotonIsConnected) {
int speed = userConfig->getStepperSpeed();
Expand Down Expand Up @@ -410,8 +411,6 @@ void SS2K::moveStepper(void *pvParameters) {
if (stepper) {
ss2k->stepperIsRunning = stepper->isRunning();
ss2k->currentPosition = stepper->getCurrentPosition();
// If we're in ERG mode, modify shift commands to inc/dec the target watts instead.
ss2k->FTMSModeShiftModifier();
if (!ss2k->externalControl) {
if ((rtConfig->getFTMSMode() == FitnessMachineControlPointProcedure::SetTargetPower) ||
(rtConfig->getFTMSMode() == FitnessMachineControlPointProcedure::SetTargetResistanceLevel)) {
Expand Down

0 comments on commit 92513e0

Please sign in to comment.