nrf-rs / nrf51-hal

A Rust embedded-hal impl crate for the Nordic nrf51 series of microcontrollers
BSD Zero Clause License
19 stars 13 forks source link

Rejig TWI receive logic #15

Closed miek closed 5 years ago

miek commented 5 years ago

This makes a few changes to the TWI logic:

One downside is that there are some redundant RESUME calls. It doesn't seem to cause any problems and I'm not sure it's worth the extra complication in the code to avoid it.