fixed bug in TX routine, now waits for 1024 samples in buffer before TXing