diff --git a/src/zble_module.c b/src/zble_module.c index 63130be..4f3a001 100644 --- a/src/zble_module.c +++ b/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; diff --git a/src/znordic.c b/src/znordic.c index 4f597d7..80aa6e6 100644 --- a/src/znordic.c +++ b/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);