mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-09 07:57:21 +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 "nimble/hci_common.h"
|
||||||
#include "esp_nimble_mem.h"
|
#include "esp_nimble_mem.h"
|
||||||
|
|
||||||
|
#if MYNEWT_VAL(BLE_GATTS) && CONFIG_BT_NIMBLE_RAS_SERVICE
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
@@ -518,3 +519,4 @@ ble_svc_ras_init(void) {
|
|||||||
reset_ranging_buffer();
|
reset_ranging_buffer();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -3641,7 +3641,8 @@ ble_gatts_reset(void)
|
|||||||
#if MYNEWT_VAL(BLE_SVC_HID_SERVICE)
|
#if MYNEWT_VAL(BLE_SVC_HID_SERVICE)
|
||||||
ble_svc_hid_reset();
|
ble_svc_hid_reset();
|
||||||
#endif
|
#endif
|
||||||
#if MYNEWT_VAL(BLE_STATIC_TO_DYNAMIC)
|
|
||||||
|
#if MYNEWT_VAL(BLE_STATIC_TO_DYNAMIC) && CONFIG_BT_NIMBLE_SPS_SERVICE
|
||||||
ble_svc_sps_reset();
|
ble_svc_sps_reset();
|
||||||
#endif
|
#endif
|
||||||
ble_hs_unlock();
|
ble_hs_unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user