Skip to content

Commit

Permalink
fix(rddi): reset events on each connection to prevent unexpected wake…
Browse files Browse the repository at this point in the history
…up behavior
  • Loading branch information
windowsair committed Aug 1, 2022
1 parent 80ab95e commit 2f9cb19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elaphureLinkRDDI/rddi_dap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ RDDI_Open(RDDIHandle *pHandle, const void *pDetails)
*pHandle = 1;
kContext.set_rddi_handle(1);

// Reset to default state to prevent false wake up
ResetEvent(k_consumer_event);
ResetEvent(k_producer_event);

// TODO: context status clean up

return RDDI_SUCCESS;
Expand Down

0 comments on commit 2f9cb19

Please sign in to comment.