geomatsi / ftdi-embedded-hal-archive

Check https://github.com/ftdi-rs project for the up-to-date implementation of FTDI MPSSE embedded HAL.
MIT License
31 stars 6 forks source link

FTDI device failures will result in a failure to drop. #5

Closed newAM closed 4 years ago

newAM commented 4 years ago

On an FTDI device failure drop will also fail because the mutex is poisoned.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: UnexpectedEof, error: "failed to fill whole buffer" }', ftdi-embedded-hal/src/gpio.rs:86:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', ftdi-embedded-hal/src/x232h.rs:222:20