Skip to content

Commit

Permalink
TrainerDay Fix
Browse files Browse the repository at this point in the history
Hopefully fixes the rapid ERG issue with TrainerDay.
  • Loading branch information
doudar committed Jan 20, 2024
1 parent c75f2e3 commit 617336e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed DNS server in AP mode.
- Fixed an issue with IC4 and variants not displaying device name in Bluetooth scanner. Fixes #500
- Switched from using Power Table to a Torque Table for better compensation in cad variations.
- added test for invalid Peloton data to keep stepper from running away without resistance information.
- added test for invalid Peloton data to keep stepper from running away without resistance information.
- Fixed a bug with Trainer Day and rapid ERG sending.

### Hardware
- Wire diameter reduced from 7.2mm to 6.0mm on the window passthrough to accommodate the latest batch of cables.
Expand Down
2 changes: 1 addition & 1 deletion src/ERG_Mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void ErgMode::computeErg() {
int newCadence = rtConfig.cad.getValue();

// check for new torque value or new set point, if watts < 10 treat as faulty
if ((this->watts.getTimestamp() == newWatts.getTimestamp() && this->setPoint == newWatts.getTarget()) || newWatts.getValue() < 10) {
if ((this->watts.getTimestamp() == newWatts.getTimestamp() || this->setPoint == newWatts.getTarget()) || newWatts.getValue() < 10) {
SS2K_LOGW(ERG_MODE_LOG_TAG, "Watts previously processed.");
return;
}
Expand Down

0 comments on commit 617336e

Please sign in to comment.