rp-rs / rp-hal

A Rust Embedded-HAL for the rp series microcontrollers
https://crates.io/crates/rp2040-hal
Apache License 2.0
1.46k stars 237 forks source link

Let UART write return some bytes were written #838

Closed jannic closed 3 months ago

jannic commented 3 months ago

embedded_io::Write::write(buf) should not block until the full buffer was written. Instead, it should only block until at least one byte was written.

(See https://github.com/rp-rs/rp-hal/pull/837#issuecomment-2305371353)

thejpster commented 3 months ago

Fixes https://github.com/rp-rs/rp-hal/issues/840