cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in generated MC workbench code

OleB
Associate

Hello,

I am using MC Workbench v. 6.2.1.

 

The function "__weak bool MCI_StartWithPolarizationMotor(MCI_Handle_t* pHandle)" is supposed to return true on success. But it is currently returning false. This function is located in "mc_interface.c" at line 422.

 

Function is used in "void MCP_ReceivedPacket(MCP_Handle_t *pHandle)", which is located in "mcp.c" at line 223.

This function calls the "StartWithPolarizationMotor" when MCP sends the command "START_MOTOR" and "START_STOP". In the case of "START_MOTOR" it expects a false return to be successful. But in the case of "START_STOP" it expects a true to be returned if successful.

 

Since this is a weak function, i have replaced it in my own code. Just thought you should know so you can fix it in the next update.

 

Best Regards

Ole

 

1 ACCEPTED SOLUTION

Accepted Solutions
GMA
ST Employee

Hello,

Thank you for your bug report.
I will enter a ticket on our side, and it will be solved on further version.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

View solution in original post

2 REPLIES 2
GMA
ST Employee

Hello,

Thank you for your bug report.
I will enter a ticket on our side, and it will be solved on further version.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
ASA
ST Employee

Hello,

This issue has been fixed in our new MCSDK 6.3.0 release,
so feel free to download it and try if it solved correctly your issue reported in this post.

Kind Regards.

Amina.

If you agree with my answer, please accept it by clicking on 'Accept as solution'.