Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear specific events before modbus master operation. #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NickXia007
Copy link

Next modbus ops may failed if we received some data before operation starting.

Signed-off-by: Xia Haiqiang [email protected]

Next modbus ops may failed if we received some data before operation starting.

Signed-off-by: Xia Haiqiang <[email protected]>
@NickXia007
Copy link
Author

The FreeRTOS port version as flowing:
`/**

  • This function is used for clear all events at last modbus operation.
  • @note If you are use OS, you can use OS's event mechanism. Otherwise you have to run
  • much user custom delay for waiting.
    /
    void eMBMasterEventClear( void )
    {
    xEventGroupClearBits(xModbusMasterOsEvent, /
    The event group being tested. */
    EV_MASTER_PROCESS_SUCESS | EV_MASTER_ERROR_RESPOND_TIMEOUT
    | EV_MASTER_ERROR_RECEIVE_DATA | EV_MASTER_ERROR_EXECUTE_FUNCTION);
    }
    `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant