/* Function for initializing services that will be used by the application.  */
static void services_init(void)
/* Function for initializing services that will be used by the application.  */
static void services_init(void)
{
    uint32_t       err_code;
    ble_dfu_init_t dfu_init_obj;
    memset(&dfu_init_obj, 0, sizeof(dfu_init_obj));
    dfu_init_obj.revision      = DFU_REVISION;
    dfu_init_obj.evt_handler   = on_dfu_evt;
    dfu_init_obj.error_handler = service_error_handler;
    err_code = ble_dfu_init(&m_dfu, &dfu_init_obj);
    APP_ERROR_CHECK(err_code);
}