From d89993bc6f3923e98bdd565caec614c905757303 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 4 Feb 2024 14:36:29 +0800 Subject: [PATCH] update --- include/zble_module.h | 4 +++- src/zble_module.c | 1 + src/znordic.c | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/zble_module.h b/include/zble_module.h index 96fc963..6a66230 100644 --- a/include/zble_module.h +++ b/include/zble_module.h @@ -1,7 +1,9 @@ #pragma once #include #include - +#include "ble_dfu.h" +#include "nrf_bootloader_info.h" +#include "nrf_power.h" /** * @brief */ diff --git a/src/zble_module.c b/src/zble_module.c index bbf24f1..b448291 100644 --- a/src/zble_module.c +++ b/src/zble_module.c @@ -5,6 +5,7 @@ #include #include + #include "znordic.h" /******************************************************************************* * ¹ã²¥°üÅä?? * diff --git a/src/znordic.c b/src/znordic.c index 94fa497..bc06aac 100644 --- a/src/znordic.c +++ b/src/znordic.c @@ -33,6 +33,12 @@ void znordic_init() { NRF_LOG_DEFAULT_BACKENDS_INIT(); } + #if 0 + { + ret_code_t err_code = ble_dfu_buttonless_async_svci_init(); + APP_ERROR_CHECK(err_code); + } + #endif { /*******************************************************************************