flush fifo under send/receive task code