/* Function for writing an acknowledgment packet for transmission.  */
static void ack_transmit(void)
/* Function for writing an acknowledgment packet for transmission.  */
static void ack_transmit(void)
{
    static uint8_t ack_packet[PKT_HDR_SIZE];
    ack_packet[0] = (packet_number_expected_get() << 3u);
    ack_packet[1] = 0;    
    ack_packet[2] = 0;        
    ack_packet[3] = header_checksum_calculate(ack_packet);
    UNUSED_VARIABLE(hci_slip_write(ack_packet, sizeof(ack_packet)));   
}