mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 19:20:26 +00:00
fix set bd addr command for em9301
This commit is contained in:
parent
bc01039d26
commit
33c51d36da
@ -48,8 +48,7 @@
|
|||||||
|
|
||||||
#include <stddef.h> /* NULL */
|
#include <stddef.h> /* NULL */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h> /* memcpy */
|
#include <string.h> /* memcpy */
|
||||||
|
|
||||||
#include "hci.h"
|
#include "hci.h"
|
||||||
|
|
||||||
// should go to some common place
|
// should go to some common place
|
||||||
@ -58,7 +57,7 @@
|
|||||||
static int em9301_set_bd_addr_cmd(void * config, bd_addr_t addr, uint8_t *hci_cmd_buffer){
|
static int em9301_set_bd_addr_cmd(void * config, bd_addr_t addr, uint8_t *hci_cmd_buffer){
|
||||||
bt_store_16(hci_cmd_buffer, 0, OPCODE(OGF_VENDOR, 0x02));
|
bt_store_16(hci_cmd_buffer, 0, OPCODE(OGF_VENDOR, 0x02));
|
||||||
hci_cmd_buffer[2] = 0x06;
|
hci_cmd_buffer[2] = 0x06;
|
||||||
bt_flip_addr(addr, &hci_cmd_buffer[3]);
|
bt_flip_addr(&hci_cmd_buffer[3], addr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user