espressif / esp-nimble

A fork of NimBLE stack, for use with ESP32 and ESP-IDF
Apache License 2.0
76 stars 49 forks source link

fix compilation because of unknown MYNEWT_VAL #59

Closed Staars closed 6 months ago

Staars commented 10 months ago

MYNEWT_VAL is unknown in the scope of this file in some or at least my build environment.

Getting this error message:

.../esp32/include/bt/host/nimble/nimble/nimble/host/services/gap/include/services/gap/ble_svc_gap.h:25:15: error: missing binary operator before token "("
   25 | #if MYNEWT_VAL(ENC_ADV_DATA)

Adding this include fixes this for me.

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.

rahult-github commented 10 months ago

Thanks for the commit, but we already have found this issue which was introduced when this commit was made. Your change is correct and valid.