fixed buffer overflow bug; sending lots of data (e.g. PHY update) now works