Taking care of review comments

This commit is contained in:
swateeshrivastava
2019-03-05 11:40:59 +05:30
parent 8a070266a5
commit 8b195765d2
2 changed files with 4 additions and 2 deletions

View File

@@ -773,8 +773,9 @@ int32_t ocmw_send_msg(OCMPMessageFrame ecMsgFrame, uint8_t interface)
ocmw_recv_eth_msgfrom_ec(ethRecvBuf,
sizeof(ethRecvBuf), OCMW_EC_STUB_DEV);
ocmw_ec_msgparser();
if (alertRecord == 0)
if (alertRecord == 0) {
break;
}
}
} else {
memset(ethRecvBuf, 0, sizeof(ethRecvBuf));

View File

@@ -209,8 +209,9 @@ ocware_stub_ret ocware_stub_frame_alert_msgframe(char *buffer)
if (subSystemNbr != 0) {
for (subsystemIndex = 0; subsystemIndex < allAlertCount;
subsystemIndex++) {
if (alertGlobalData[subsystemIndex].subsystemId == subSystemNbr)
if (alertGlobalData[subsystemIndex].subsystemId == subSystemNbr) {
break;
}
}
alertIndex = subsystemIndex;
while (alertGlobalData[alertIndex].subsystemId == subSystemNbr)