mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-31 00:32:52 +00:00
goep_server: fix address endianess in connect events
This commit is contained in:
parent
e7b3edb089
commit
ba8264da49
@ -153,7 +153,7 @@ static inline void goep_server_emit_incoming_connection(btstack_packet_handler_t
|
||||
event[pos++] = GOEP_SUBEVENT_INCOMING_CONNECTION;
|
||||
little_endian_store_16(event, pos, goep_cid);
|
||||
pos+=2;
|
||||
memcpy(&event[pos], bd_addr, 6);
|
||||
reverse_bd_addr(bd_addr, &event[pos]);
|
||||
pos += 6;
|
||||
little_endian_store_16(event, pos, con_handle);
|
||||
pos += 2;
|
||||
@ -170,7 +170,7 @@ static inline void goep_server_emit_connection_opened(btstack_packet_handler_t c
|
||||
little_endian_store_16(event, pos, goep_cid);
|
||||
pos+=2;
|
||||
event[pos++] = status;
|
||||
memcpy(&event[pos], bd_addr, 6);
|
||||
reverse_bd_addr(bd_addr, &event[pos]);
|
||||
pos += 6;
|
||||
little_endian_store_16(event, pos, con_handle);
|
||||
pos += 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user