Skip to content

Commit 3502633

Browse files
authored
fix the test (#117)
1 parent 2e6dbfb commit 3502633

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FprimeZephyrReference/Components/AntennaDeployer/AntennaDeployer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,18 @@ void AntennaDeployer ::SET_DEPLOYMENT_STATE_cmdHandler(FwOpcodeType opCode, U32
119119

120120
void AntennaDeployer ::enterQuietWait() {
121121
this->resetDeploymentState();
122-
this->m_state = DeploymentState::QUIET_WAIT;
123122
this->m_ticksInState = 0;
124123
this->m_successDetected = false;
125124
this->m_stopRequested = false;
126125

127126
Fw::ParamValid valid;
128127
const U32 quietTime = this->paramGet_QUIET_TIME_SEC(valid);
129128
if (quietTime == 0U) {
129+
// Skip QUIET_WAIT state entirely when quietTime is 0
130130
this->startNextAttempt();
131+
} else {
132+
// Only enter QUIET_WAIT if we actually need to wait
133+
this->m_state = DeploymentState::QUIET_WAIT;
131134
}
132135
}
133136

0 commit comments

Comments
 (0)