mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-26 07:13:32 +00:00
host/gap: fix typo in GAP event macro
Corrects spelling in BLE_GAP_EVENT_PAIRING_COMPLETE
This commit is contained in:
committed by
Szymon Janc
parent
a7c615381f
commit
572e5fb946
@@ -1511,7 +1511,7 @@ gap_event_cb(struct ble_gap_event *event, void *arg)
|
||||
== REJECT_SUPERVISION_TIMEOUT) {
|
||||
return EINVAL;
|
||||
}
|
||||
case BLE_GAP_EVENT_PARING_COMPLETE:
|
||||
case BLE_GAP_EVENT_PAIRING_COMPLETE:
|
||||
console_printf("received pairing complete: "
|
||||
"conn_handle=%d status=%d\n",
|
||||
event->pairing_complete.conn_handle,
|
||||
|
||||
@@ -247,7 +247,10 @@ struct hci_conn_update;
|
||||
#define BLE_GAP_EVENT_TRANSMIT_POWER 26
|
||||
|
||||
/** GAP event: Pairing complete */
|
||||
#define BLE_GAP_EVENT_PARING_COMPLETE 27
|
||||
#define BLE_GAP_EVENT_PAIRING_COMPLETE 27
|
||||
|
||||
/** GAP event: Pairing complete (deprecated) */
|
||||
#define BLE_GAP_EVENT_PARING_COMPLETE BLE_GAP_EVENT_PAIRING_COMPLETE
|
||||
|
||||
/** GAP event: Subrate change */
|
||||
#define BLE_GAP_EVENT_SUBRATE_CHANGE 28
|
||||
@@ -1245,7 +1248,8 @@ struct ble_gap_event {
|
||||
* Represents a received Pairing Complete message
|
||||
*
|
||||
* Valid for the following event types:
|
||||
* o BLE_GAP_EVENT_PARING_COMPLETE
|
||||
* o BLE_GAP_EVENT_PAIRING_COMPLETE
|
||||
* o BLE_GAP_EVENT_PARING_COMPLETE (deprecated)
|
||||
*/
|
||||
struct {
|
||||
/**
|
||||
|
||||
@@ -6382,7 +6382,7 @@ ble_gap_pairing_complete_event(uint16_t conn_handle, int status)
|
||||
struct ble_gap_event event;
|
||||
|
||||
memset(&event, 0, sizeof event);
|
||||
event.type = BLE_GAP_EVENT_PARING_COMPLETE;
|
||||
event.type = BLE_GAP_EVENT_PAIRING_COMPLETE;
|
||||
event.pairing_complete.conn_handle = conn_handle;
|
||||
event.pairing_complete.status = status;
|
||||
ble_gap_call_conn_event_cb(&event, conn_handle);
|
||||
|
||||
Reference in New Issue
Block a user