mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-31 00:32:52 +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
|
#define HCI_EVENT_HARDWARE_ERROR 0x10u
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @format 1H
|
* @format H
|
||||||
* @param handle
|
* @param handle
|
||||||
*/
|
*/
|
||||||
#define HCI_EVENT_FLUSH_OCCURRED 0x11u
|
#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
|
* @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED
|
||||||
* @param event packet
|
* @param event packet
|
||||||
* @return handle
|
* @return handle
|
||||||
* @note: btstack_type 1
|
* @note: btstack_type H
|
||||||
*/
|
*/
|
||||||
static inline uint8_t hci_event_flush_occurred_get_handle(const uint8_t * event){
|
static inline hci_con_handle_t hci_event_flush_occurred_get_handle(const uint8_t * event){
|
||||||
return event[2];
|
return little_endian_read_16(event, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user