mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 15:41:00 +00:00
avdtp_util: fix store_bit16 issue #233
This commit is contained in:
parent
52b3d2e98e
commit
ea6072aff7
@ -204,7 +204,7 @@ int get_bit16(uint16_t bitmap, int position){
|
||||
return (bitmap >> position) & 1;
|
||||
}
|
||||
|
||||
uint8_t store_bit16(uint16_t bitmap, int position, uint8_t value){
|
||||
uint16_t store_bit16(uint16_t bitmap, int position, uint8_t value){
|
||||
if (value){
|
||||
bitmap |= 1 << position;
|
||||
} else {
|
||||
|
@ -67,7 +67,7 @@ static inline uint8_t avdtp_header(uint8_t tr_label, avdtp_packet_type_t packet_
|
||||
|
||||
int avdtp_read_signaling_header(avdtp_signaling_packet_t * signaling_header, uint8_t * packet, uint16_t size);
|
||||
|
||||
uint8_t store_bit16(uint16_t bitmap, int position, uint8_t value);
|
||||
uint16_t store_bit16(uint16_t bitmap, int position, uint8_t value);
|
||||
int get_bit16(uint16_t bitmap, int position);
|
||||
|
||||
int avdtp_pack_service_capabilities(uint8_t * buffer, int size, avdtp_capabilities_t caps, avdtp_service_category_t category, uint8_t pack_all_capabilities);
|
||||
|
Loading…
x
Reference in New Issue
Block a user