nrf-rs / nrf-hal

A Rust HAL for the nRF family of devices
Apache License 2.0
499 stars 139 forks source link

Use `is_connected` to determine whether a ctx/rtx was connected to uarte #397

Closed hdoordt closed 1 year ago

hdoordt commented 1 year ago

Uarte::free method uses bit_is_set to determine whether a pin was connected to cts and rts. However, a set bit represents a disconnected pin. Use is_connected() instead to do the inversion.

jonas-schievink commented 1 year ago

Thanks!

bors r+

bors[bot] commented 1 year ago

Build succeeded: