mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-16 07:20:52 +00:00
hfp_hf: swap text_operation and text_type fields
This commit is contained in:
parent
acd11d4a99
commit
e83f1be7ee
@ -1843,8 +1843,8 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param subevent_code
|
||||
* @param acl_handle
|
||||
* @param text_id
|
||||
* @param text_operation
|
||||
* @param text_type
|
||||
* @param text_operation
|
||||
* @param text_length
|
||||
* @param text
|
||||
*/
|
||||
|
@ -4877,15 +4877,6 @@ static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_ag_messag
|
||||
static inline uint16_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_id(const uint8_t * event){
|
||||
return little_endian_read_16(event, 5);
|
||||
}
|
||||
/**
|
||||
* @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
|
||||
* @param event packet
|
||||
* @return text_operation
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){
|
||||
return event[7];
|
||||
}
|
||||
/**
|
||||
* @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
|
||||
* @param event packet
|
||||
@ -4893,6 +4884,15 @@ static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_tex
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_type(const uint8_t * event){
|
||||
return event[7];
|
||||
}
|
||||
/**
|
||||
* @brief Get field text_operation from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE
|
||||
* @param event packet
|
||||
* @return text_operation
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t hfp_subevent_enhanced_voice_recognition_ag_message_get_text_operation(const uint8_t * event){
|
||||
return event[8];
|
||||
}
|
||||
/**
|
||||
|
@ -227,8 +227,8 @@ static void hfp_hf_emit_enhanced_voice_recognition_text(hfp_connection_t * hfp_c
|
||||
pos += 2;
|
||||
little_endian_store_16(event, pos, hfp_connection->ag_msg.text_id);
|
||||
pos += 2;
|
||||
event[pos++] = hfp_connection->ag_msg.text_operation;
|
||||
event[pos++] = hfp_connection->ag_msg.text_type;
|
||||
event[pos++] = hfp_connection->ag_msg.text_operation;
|
||||
|
||||
// length, zero ending
|
||||
uint16_t value_length = hfp_connection->ag_vra_msg_length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user