/* Function for processing data written by the peer to the DFU Packet Characteristic.  */
static void on_dfu_pkt_write(ble_dfu_t *p_dfu, ble_dfu_evt_t *p_evt)
/* Function for processing data written by the peer to the DFU Packet Characteristic.  */
static void on_dfu_pkt_write(ble_dfu_t *p_dfu, ble_dfu_evt_t *p_evt)
{
    switch (m_pkt_type)
    {
        case PKT_TYPE_START:
            start_data_process(p_dfu, p_evt);
            break;
        case PKT_TYPE_INIT:
            init_data_process(p_dfu, p_evt);
            break;
        case PKT_TYPE_FIRMWARE_DATA:
            app_data_process(p_dfu, p_evt);
            break;
        default:
            break;
    }
}