forked from gatsby/datalink_repo
miscellaneous update.
This commit is contained in:
@@ -161,8 +161,6 @@ int MPC_Init(MPC_INST** instPtr, MPC_CONFIG* configPtr){
|
||||
goto init_failed;
|
||||
}
|
||||
|
||||
memset(mpcRecord, 0x00, sizeof(MPC_RECORD));
|
||||
|
||||
mpcTxMsgBuff = bit_array_create(STATE_STROAGE_BUFF_MAX*8);
|
||||
if(mpcTxMsgBuff == NULL){
|
||||
goto init_failed;
|
||||
@@ -173,6 +171,10 @@ int MPC_Init(MPC_INST** instPtr, MPC_CONFIG* configPtr){
|
||||
}
|
||||
return Status;
|
||||
|
||||
memset(mpcRecord, 0x00, sizeof(MPC_RECORD));
|
||||
memset(mpcTxMsgBuff, 0x00, sizeof(STATE_STROAGE_BUFF_MAX*8));
|
||||
memset(mpcRxMsgBuff, 0x00, sizeof(MPC_MSG_LEN_MAX));
|
||||
|
||||
init_failed:
|
||||
free(*instPtr);
|
||||
free(mpcRecord);
|
||||
|
||||
Reference in New Issue
Block a user