send bd addr in correct endianess - thanks to francis for spotting this goof

This commit is contained in:
matthias.ringwald 2010-09-14 20:12:22 +00:00
parent c58e38fb3a
commit 2f89d309d8

View File

@ -810,7 +810,7 @@ void hci_emit_remote_name_cached(bd_addr_t *addr, device_name_t *name){
event[0] = BTSTACK_EVENT_REMOTE_NAME_CACHED;
event[1] = len - 2;
event[2] = 0; // just to be compatible with HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
BD_ADDR_COPY(&event[3], addr);
bt_flip_addr(&event[3], *addr);
memcpy(&event[9], name, 248);
hci_dump_packet(HCI_EVENT_PACKET, 0, event, len);
hci_stack.packet_handler(HCI_EVENT_PACKET, event, len);