kasjer opened a new pull request #2632:
URL: https://github.com/apache/mynewt-core/pull/2632


   After read or write that ended with error (address nack)
   interrupts are blocked and stop condition is generated
   that will rise EVENTS_STOP later on.
   
   Read or write finishes with this event active.
   
   On next write or read interrupt were enabled before EVENTS_STOP
   was cleared resulting in interrupt handling that would signal
   semaphore.
   In some cases that may lead to data corruption when code reuses buffer
   while I2C transaction is ongoing.
   
   This changes clears old events before enabling interrupts.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to