astro / embedded-nrf24l01

A pure Rust driver for NRF24L01(+) transceivers on embedded-hal platforms
https://crates.io/crates/embedded-nrf24l01
39 stars 21 forks source link

Remove panicing behaviour from NRF24L01::new #9

Closed barafael closed 3 years ago

barafael commented 3 years ago

I think it would be better to return from new with an error instead of panicing. Especially since the case of not connected or broken module or wrong wiring can be discerned with some reliability.

astro commented 3 years ago

Thank you!