From 9d164c2b1b3ba27d5e72a2ce9388fa0ad77b0ee9 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Mon, 21 Jul 2025 10:40:51 +0530 Subject: [PATCH] fix(nimble): Added code under correct flags Code was not under correct flag. Hence if flag is disabled, then compilation warnings are observed. Fixed the same Based on PR : https://github.com/espressif/esp-nimble/pull/107 --- nimble/host/src/ble_hs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_hs.c b/nimble/host/src/ble_hs.c index 7036fecc9..2fa0bb553 100644 --- a/nimble/host/src/ble_hs.c +++ b/nimble/host/src/ble_hs.c @@ -932,7 +932,7 @@ ble_hs_deinit(void) ble_npl_event_deinit(&ble_hs_ev_reset); -#if NIMBLE_BLE_CONNECT +#if NIMBLE_BLE_CONNECT && MYNEWT_VAL(BLE_GATTS) ble_npl_event_deinit(&ble_hs_ev_tx_notifications); ble_gatts_stop();