Skip to content

Commit

Permalink
Scanned devices are no longer saved to the filesystem to prevent snow…
Browse files Browse the repository at this point in the history
…balling.
  • Loading branch information
doudar committed Mar 15, 2024
1 parent 94cad48 commit 4339bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 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.
- Many updates and bug fixes which enable the Config App to communicate with SmartSpin2k.
- Scanned devices no longer saved to filesystem. The new scanning method would keep snowballing them otherwise.

### Hardware
- added Yesoul S3
Expand Down
8 changes: 5 additions & 3 deletions src/SmartSpin_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void userParameters::saveToLittleFS() {
doc["connectedPowerMeter"] = connectedPowerMeter;
doc["connectedHeartMonitor"] = connectedHeartMonitor;
doc["connectedRemote"] = connectedRemote;
doc["foundDevices"] = foundDevices;
//doc["foundDevices"] = foundDevices;
doc["maxWatts"] = maxWatts;
doc["minWatts"] = minWatts;
doc["shifterDir"] = shifterDir;
Expand Down Expand Up @@ -193,8 +193,10 @@ void userParameters::loadFromLittleFS() {
setPassword(doc["password"]);
setConnectedPowerMeter(doc["connectedPowerMeter"]);
setConnectedHeartMonitor(doc["connectedHeartMonitor"]);
setFoundDevices(doc["foundDevices"]);
if (doc["ERGSensitivity"]) { // If statements to upgrade old versions of config.txt that didn't include these
//setFoundDevices(doc["foundDevices"]);

// If statements to upgrade old versions of config.txt that didn't include these
if (doc["ERGSensitivity"]) {
setERGSensitivity(doc["ERGSensitivity"]);
}
if (doc["maxWatts"]) {
Expand Down

0 comments on commit 4339bdf

Please sign in to comment.