mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-21 12:40:54 +01:00
Ensure events are defined inNimBLEUtils::gapEventToString
This commit is contained in:
parent
7bd7b1dfc2
commit
a6e75b3537
1 changed files with 4 additions and 0 deletions
|
@ -509,10 +509,14 @@ const char* NimBLEUtils::gapEventToString(uint8_t eventType) {
|
|||
return "BLE_GAP_EVENT_AUTHORIZE";
|
||||
case BLE_GAP_EVENT_TEST_UPDATE: // 31
|
||||
return "BLE_GAP_EVENT_TEST_UPDATE";
|
||||
# ifdef BLE_GAP_EVENT_DATA_LEN_CHG
|
||||
case BLE_GAP_EVENT_DATA_LEN_CHG: // 32
|
||||
return "BLE_GAP_EVENT_DATA_LEN_CHG";
|
||||
# endif
|
||||
# ifdef BLE_GAP_EVENT_LINK_ESTAB
|
||||
case BLE_GAP_EVENT_LINK_ESTAB: // 33
|
||||
return "BLE_GAP_EVENT_LINK_ESTAB";
|
||||
# endif
|
||||
# endif
|
||||
default:
|
||||
NIMBLE_LOGD(LOG_TAG, "Unknown event type %d 0x%.2x", eventType, eventType);
|
||||
|
|
Loading…
Reference in a new issue