Skip to content

Commit 8b19576

Browse files
Taking care of review comments
1 parent 8a07026 commit 8b19576

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

firmware/host/ocmw/ocmw_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,9 @@ int32_t ocmw_send_msg(OCMPMessageFrame ecMsgFrame, uint8_t interface)
773773
ocmw_recv_eth_msgfrom_ec(ethRecvBuf,
774774
sizeof(ethRecvBuf), OCMW_EC_STUB_DEV);
775775
ocmw_ec_msgparser();
776-
if (alertRecord == 0)
776+
if (alertRecord == 0) {
777777
break;
778+
}
778779
}
779780
} else {
780781
memset(ethRecvBuf, 0, sizeof(ethRecvBuf));

firmware/host/ocwarestub/ocware_stub_database.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ ocware_stub_ret ocware_stub_frame_alert_msgframe(char *buffer)
209209
if (subSystemNbr != 0) {
210210
for (subsystemIndex = 0; subsystemIndex < allAlertCount;
211211
subsystemIndex++) {
212-
if (alertGlobalData[subsystemIndex].subsystemId == subSystemNbr)
212+
if (alertGlobalData[subsystemIndex].subsystemId == subSystemNbr) {
213213
break;
214+
}
214215
}
215216
alertIndex = subsystemIndex;
216217
while (alertGlobalData[alertIndex].subsystemId == subSystemNbr)

0 commit comments

Comments
 (0)