fix(nimble): Fix compilation issues in Gatt SPS service

This commit is contained in:
Rahul Tank
2026-05-26 21:59:46 +05:30
parent df2e4440e0
commit 17a032f0c7
2 changed files with 4 additions and 1 deletions
@@ -28,6 +28,7 @@
#include "nimble/hci_common.h"
#include "esp_nimble_mem.h"
#if MYNEWT_VAL(BLE_GATTS) && CONFIG_BT_NIMBLE_RAS_SERVICE
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
@@ -518,3 +519,4 @@ ble_svc_ras_init(void) {
reset_ranging_buffer();
}
#endif
+2 -1
View File
@@ -3641,7 +3641,8 @@ ble_gatts_reset(void)
#if MYNEWT_VAL(BLE_SVC_HID_SERVICE)
ble_svc_hid_reset();
#endif
#if MYNEWT_VAL(BLE_STATIC_TO_DYNAMIC)
#if MYNEWT_VAL(BLE_STATIC_TO_DYNAMIC) && CONFIG_BT_NIMBLE_SPS_SERVICE
ble_svc_sps_reset();
#endif
ble_hs_unlock();