Bug in generated MC workbench code
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
