Skip to content

Commit ad4780f

Browse files
committed
Send command failure response if dev not ready
1 parent 7287ead commit ad4780f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FprimeZephyrReference/Components/Drv/RtcManager/RtcManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void RtcManager ::TIME_SET_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Drv::Time
6464
// Check device readiness
6565
if (!device_is_ready(this->dev)) {
6666
this->log_WARNING_HI_DeviceNotReady();
67+
this->cmdResponse_out(opCode, cmdSeq, Fw::CmdResponse::EXECUTION_ERROR);
6768
return;
6869
}
6970
this->log_WARNING_HI_DeviceNotReady_ThrottleClear();

0 commit comments

Comments
 (0)