*bugfix: add missing return value

This commit is contained in:
Gatsby Van
2024-02-22 16:30:25 +08:00
parent 7edb8cb3f0
commit ea5d6e0962
+3
View File
@@ -472,12 +472,14 @@ int32_t SystemBus_HandleCmd(SYSBUS *instPtr)
{
SysMonitor_UpdateSendPayload(data + FLJ_DATA_OFFSET, PAYLOAD_LEN_FLJ_TX); // omit control info
instPtr->sysbusLog.svcCnt++;
Status = SUCCESS;
break;
}
case CMD_LJ_SEND:
{
SysMonitor_UpdateSendPayload(data + LJ_DATA_OFFSET, PAYLOAD_LEN_LJ_TX); // omit control info
instPtr->sysbusLog.svcCnt++;
Status = SUCCESS;
break;
}
case CMD_FLJ_POLL:
@@ -643,6 +645,7 @@ int32_t SystemBus_HandleCmd(SYSBUS *instPtr)
default:
{
DBG_ERROR("SystemBus::Unknown command code!\n");
Status = FAILURE;
break;
}
}