rfsv16::fread is horribly broken. Using it to read
more 852 bytes at one time will cause data loss.
To be precise, the point in the receiving buffer to
which received data is copied is never advanced. Thus
the buffer will contain the contents of the last
packet read at the start of the buffer, the rest of
the previous packet up to 852 bytes after that if the
last was < 852, and garbage thereafter.
This patch brings the code into line with that in
Log in to post a comment.