Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,18 @@ void AntennaDeployer ::SET_DEPLOYMENT_STATE_cmdHandler(FwOpcodeType opCode, U32

void AntennaDeployer ::enterQuietWait() {
this->resetDeploymentState();
this->m_state = DeploymentState::QUIET_WAIT;
this->m_ticksInState = 0;
this->m_successDetected = false;
this->m_stopRequested = false;

Fw::ParamValid valid;
const U32 quietTime = this->paramGet_QUIET_TIME_SEC(valid);
if (quietTime == 0U) {
// Skip QUIET_WAIT state entirely when quietTime is 0
this->startNextAttempt();
} else {
// Only enter QUIET_WAIT if we actually need to wait
this->m_state = DeploymentState::QUIET_WAIT;
}
}

Expand Down