mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(nimble): Fix compilation issues in Gatt SPS service
This commit is contained in:
@@ -833,6 +833,14 @@ menu "Services"
|
|||||||
help
|
help
|
||||||
Defines maximum number of report characteristics per service instance
|
Defines maximum number of report characteristics per service instance
|
||||||
|
|
||||||
|
config BT_NIMBLE_RAS_SERVICE
|
||||||
|
depends on BT_NIMBLE_CHANNEL_SOUNDING
|
||||||
|
bool "RAS service"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable RAS Service
|
||||||
|
|
||||||
|
|
||||||
menuconfig BT_NIMBLE_BAS_SERVICE
|
menuconfig BT_NIMBLE_BAS_SERVICE
|
||||||
bool "Battery service"
|
bool "Battery service"
|
||||||
default y
|
default y
|
||||||
|
|||||||
Submodule components/bt/host/nimble/nimble updated: df2e4440e0...17a032f0c7
@@ -31,7 +31,8 @@ gatt_svr_init(void)
|
|||||||
#if MYNEWT_VAL(BLE_GATTS)
|
#if MYNEWT_VAL(BLE_GATTS)
|
||||||
ble_svc_gatt_init();
|
ble_svc_gatt_init();
|
||||||
#endif
|
#endif
|
||||||
|
#if MYNEWT_VAL(BLE_GATTS) && CONFIG_BT_NIMBLE_RAS_SERVICE
|
||||||
ble_svc_ras_init();
|
ble_svc_ras_init();
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ custom_gatt_svr_init(void)
|
|||||||
#if MYNEWT_VAL(BLE_GATTS)
|
#if MYNEWT_VAL(BLE_GATTS)
|
||||||
ble_svc_gatt_init();
|
ble_svc_gatt_init();
|
||||||
#endif
|
#endif
|
||||||
|
#if MYNEWT_VAL(BLE_GATTS) && CONFIG_BT_NIMBLE_RAS_SERVICE
|
||||||
ble_svc_ras_init();
|
ble_svc_ras_init();
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ gatt_svr_init(void)
|
|||||||
#if MYNEWT_VAL(BLE_GATTS)
|
#if MYNEWT_VAL(BLE_GATTS)
|
||||||
ble_svc_gatt_init();
|
ble_svc_gatt_init();
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_BT_NIMBLE_ANS_SERVICE
|
#if CONFIG_BT_NIMBLE_HTP_SERVICE
|
||||||
ble_svc_htp_init();
|
ble_svc_htp_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user