Expected lengths in read requests are different from those in write requests. A write request is answered with 1 byte payload containing number of written bytes (payload length = 1), whereas a read should contain the number of requested bytes (payload length == requested length).
TODO: a better implementation would incorporate additional checks if number of priorly requested bytes match the number of written bytes supplied in the answer.
This fixes #23 and its duplicate #22
Expected lengths in read requests are different from those in write requests. A write request is answered with 1 byte payload containing number of written bytes (payload length = 1), whereas a read should contain the number of requested bytes (payload length == requested length).
TODO: a better implementation would incorporate additional checks if number of priorly requested bytes match the number of written bytes supplied in the answer.
@hmueller01 @l3u