Browse Source

update

master
zhaohe 1 year ago
parent
commit
8951d9a63e
  1. 6
      src/zble_module.c
  2. 2
      src/znordic.c

6
src/zble_module.c

@ -7,7 +7,7 @@
#include "znordic.h"
#ifdef DFU_SUPPORT
#if BLE_DFU_ENABLED
#include "nrf_bootloader_info.h"
#endif
/*******************************************************************************
@ -145,7 +145,7 @@ bool zble_module_is_connected() { return m_conn_handle != BLE_CONN_HANDLE_INVALI
*******************************************************************************/
void zble_module_reglistener(zble_event_listener_t event_listener) { m_event_listener = event_listener; }
#ifdef DFU_SUPPORT
#if BLE_DFU_ENABLED
/**@brief Handler for shutdown preparation.
*
@ -331,7 +331,7 @@ void zble_module_init(zble_module_cfg_t* cfg) {
/*******************************************************************************
* ÀÑÀ·þÎñ³õʼ?? *
*******************************************************************************/
#ifdef DFU_SUPPORT
#if BLE_DFU_ENABLED
{
ble_dfu_buttonless_init_t dfus_init = {0};
dfus_init.evt_handler = ble_dfu_evt_handler;

2
src/znordic.c

@ -33,7 +33,7 @@ void znordic_init() {
NRF_LOG_DEFAULT_BACKENDS_INIT();
}
#ifdef DFU_SUPPORT
#if BLE_DFU_ENABLED
{
ret_code_t err_code = ble_dfu_buttonless_async_svci_init();
APP_ERROR_CHECK(err_code);

Loading…
Cancel
Save