mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
fix(nimble): Fix compilation issues in Gatt SPS service
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user