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

Panics with "No FTDI device" rather than returning error #1

Closed TheDan64 closed 4 years ago

TheDan64 commented 4 years ago

https://github.com/geomatsi/ftdi-embedded-hal/blob/0eac7743b2cc3c18722bf6634c49fd3ba2f2780d/src/x232h.rs#L58

It would be really useful to be able to loop over a list of devices and try and connect to them. You can't do this though because the first unsuccessful attempt will panic.

geomatsi commented 4 years ago

Hi @TheDan64

Sure, needs to fix it. Besides, support for multiple FTDI devices is also missing. I plan to get back to this project and to rework quite a few things. So I will keep this issue open. But PRs are also welcome if you already came up with some fixes. I don't have enough time to work on development, but I can help with testing.

Regards, Sergey