stephendpmurphy / shost

💻 shost - GUI, CLI and static library for connecting to FTDI MPSSE capable devices
MIT License
2 stars 1 forks source link

Don't allow length to be overwritten when set via a -d option #29

Closed stephendpmurphy closed 2 years ago

stephendpmurphy commented 2 years ago

Currently if you were to execute a Write transfer providing a buffer via the -d option, as well as passing a -l option. The last option to be parsed will be the one to set the length. We want to prioritize setting the length based on the buffer size. This will likely become more complex when implementing SPI Read/Writes