Closed tingox closed 1 year ago
Sorry about that, don't think any of the maintainers/contributors are BSD users 😅
I think the issue stems from this line:
https://github.com/esp-rs/espflash/blob/main/espflash/src/cli/serial.rs#L82
Under the hood eq_ignore_ascii_case
converts both items to lowercase then compares them, so it's no wonder it's not working correctly.
Obviously changing this to eq
instead should resolve the issue, but then makes any user input on the command-line case sensitive. This probably isn't the end of the world, though.
I suppose we could cfg
in a special case for BSD here as well.
Let me sit on this issue for a bit, and I'll push a fix when I decide how I want to address it.
Do you happen to know if the same format is used for serial devices in dragonfly
, openbsd
, and/or netbsd
as well? I am leaning towards just cfg
ing in a check for BSD in the above linked function, may as well include whichever are applicable.
If I don't specify a port (but select the correct one when asked) espflash board-info works
if I try to specify the port, espflash autocorrects it to the wrong port
using quotes doesn't help
using the environment variable doesn't help
version
older versions behave the same way. This is on FreeBSD: