btstack_defines: fix HCI_EVENT_FLUSH_OCCURRED

This commit is contained in:
Matthias Ringwald 2022-02-17 11:18:41 +01:00
parent 8250c24233
commit 9576cd6d6f
2 changed files with 4 additions and 4 deletions

View File

@ -378,7 +378,7 @@ typedef uint8_t sm_key_t[16];
#define HCI_EVENT_HARDWARE_ERROR 0x10u
/**
* @format 1H
* @format H
* @param handle
*/
#define HCI_EVENT_FLUSH_OCCURRED 0x11u

View File

@ -602,10 +602,10 @@ static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t *
* @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED
* @param event packet
* @return handle
* @note: btstack_type 1
* @note: btstack_type H
*/
static inline uint8_t hci_event_flush_occurred_get_handle(const uint8_t * event){
return event[2];
static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){
return little_endian_read_16(event, 2);
}
/**