Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modbus/mb_ports/common/port_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ mb_err_enum_t mb_port_event_wait_req_finish(mb_port_base_t *inst)
"incorrect object handle.");
mb_err_enum_t err_status = MB_ENOERR;
mb_event_enum_t rcv_event;
xEventGroupClearBits(inst->event_obj->event_group_hdl, MB_EVENT_REQ_MASK);
EventBits_t bits = xEventGroupWaitBits(inst->event_obj->event_group_hdl, // The event group being tested.
MB_EVENT_REQ_MASK, // The bits within the event group to wait for.
pdTRUE, // Masked bits should be cleared before returning.
Expand Down