Fixed a bug in the handling of data packets.

I was using the wrong seqNo.. The protocol seems to work now.