mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 02:37:41 +00:00
fix endianess in gap le advertisment example
This commit is contained in:
parent
07dc02a222
commit
c0ded49ae7
@ -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 event_type = packet[pos++];
|
||||||
uint8_t address_type = packet[pos++];
|
uint8_t address_type = packet[pos++];
|
||||||
bd_addr_t address;
|
bd_addr_t address;
|
||||||
memcpy(address, &packet[pos], 6);
|
bt_flip_addr(address, &packet[pos]);
|
||||||
pos += 6;
|
pos += 6;
|
||||||
uint8_t rssi = packet[pos++];
|
uint8_t rssi = packet[pos++];
|
||||||
uint8_t length = packet[pos++];
|
uint8_t length = packet[pos++];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user