mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
btstack_defines: fix HCI_EVENT_FLUSH_OCCURRED
This commit is contained in:
parent
8250c24233
commit
9576cd6d6f
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user