Only reset PTME on rate change #716

Merged
muellerr merged 10 commits from only-reset-ptme-on-rate-change into main 2023-06-29 14:56:37 +02:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit b0a38136c1 - Show all commits

View File

@ -26,6 +26,7 @@ will consitute of a breaking change warranting a new major release:
- Internal error reporter set is now enabled by default and generated every 120 seconds. - Internal error reporter set is now enabled by default and generated every 120 seconds.
- Persistent TM store dumps are now performed in chronological order. - Persistent TM store dumps are now performed in chronological order.
- Increase Syrlinks RX HK rate to 5.0 seconds during a pass.
- Various robustness improvements for the heater handler. The heater handler will now only - Various robustness improvements for the heater handler. The heater handler will now only
process the command queue if it is not busy with switch commanding which reduces the amount process the command queue if it is not busy with switch commanding which reduces the amount
of possible bugs. of possible bugs.

View File

@ -773,11 +773,13 @@ void SyrlinksHandler::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
auto txStandbyHandler = [&]() { auto txStandbyHandler = [&]() {
txDataset.setReportingEnabled(false); txDataset.setReportingEnabled(false);
poolManager.changeCollectionInterval(temperatureSet.getSid(), 60.0); poolManager.changeCollectionInterval(temperatureSet.getSid(), 60.0);
poolManager.changeCollectionInterval(rxDataset.getSid(), 60.0);
transState = TransitionState::SET_TX_STANDBY; transState = TransitionState::SET_TX_STANDBY;
internalState = InternalState::TX_TRANSITION; internalState = InternalState::TX_TRANSITION;
}; };
auto txOnHandler = [&](TransitionState tgtTransitionState) { auto txOnHandler = [&](TransitionState tgtTransitionState) {
txDataset.setReportingEnabled(true); txDataset.setReportingEnabled(true);
poolManager.changeCollectionInterval(rxDataset.getSid(), 5.0);
poolManager.changeCollectionInterval(txDataset.getSid(), 10.0); poolManager.changeCollectionInterval(txDataset.getSid(), 10.0);
poolManager.changeCollectionInterval(temperatureSet.getSid(), 5.0); poolManager.changeCollectionInterval(temperatureSet.getSid(), 5.0);
transState = tgtTransitionState; transState = tgtTransitionState;