fix endianess in gap le advertisment example

This commit is contained in:
Matthias Ringwald 2015-08-05 13:00:47 +02:00
parent 07dc02a222
commit c0ded49ae7

View File

@ -241,7 +241,7 @@ static void handle_hci_event(uint8_t packet_type, uint8_t *packet, uint16_t size
uint8_t event_type = packet[pos++];
uint8_t address_type = packet[pos++];
bd_addr_t address;
memcpy(address, &packet[pos], 6);
bt_flip_addr(address, &packet[pos]);
pos += 6;
uint8_t rssi = packet[pos++];
uint8_t length = packet[pos++];