/* If any tx data is pending then copy it into the tx packet */
if (ao_packet_tx_used && ao_tx_packet.len == 0) {
ao_xmemcpy(&ao_tx_packet.d, tx_data, ao_packet_tx_used);
/* If any tx data is pending then copy it into the tx packet */
if (ao_packet_tx_used && ao_tx_packet.len == 0) {
ao_xmemcpy(&ao_tx_packet.d, tx_data, ao_packet_tx_used);