Skip to content

Commit

Permalink
uncommented out situations where peleton was detected
Browse files Browse the repository at this point in the history
  • Loading branch information
benv12 committed Jan 21, 2025
1 parent 0f0f240 commit 1127f21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/SS2K/src/sensors/PelotonData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ void PelotonData::decode(uint8_t *data, size_t length) {
break;

case PELOTON_RES_ID:
//resistance = value;
//receivedResistance = true;
resistance = value;
receivedResistance = true;
break;

case PELOTON_RES_ID2:
Expand Down
4 changes: 2 additions & 2 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,14 +744,14 @@ void SS2K::txSerial() { // Serial.printf(" Before TX ");
}

void SS2K::pelotonConnected() {
/*txCheck = TX_CHECK_INTERVAL;
txCheck = TX_CHECK_INTERVAL;
if (rtConfig->resistance.getValue() > 0) {
rtConfig->setMinResistance(MIN_PELOTON_RESISTANCE);
rtConfig->setMaxResistance(MAX_PELOTON_RESISTANCE);
} else {
rtConfig->setMinResistance(-DEFAULT_RESISTANCE_RANGE);
rtConfig->setMaxResistance(DEFAULT_RESISTANCE_RANGE);
}*/
}
}

void SS2K::rxSerial(void) {
Expand Down

0 comments on commit 1127f21

Please sign in to comment.