fix set bd addr command for em9301

This commit is contained in:
matthias.ringwald@gmail.com 2015-02-10 22:59:00 +00:00
parent bc01039d26
commit 33c51d36da

View File

@ -48,8 +48,7 @@
#include <stddef.h> /* NULL */
#include <stdio.h>
#include <string.h> /* memcpy */
#include <string.h> /* memcpy */
#include "hci.h"
// 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){
bt_store_16(hci_cmd_buffer, 0, OPCODE(OGF_VENDOR, 0x02));
hci_cmd_buffer[2] = 0x06;
bt_flip_addr(addr, &hci_cmd_buffer[3]);
bt_flip_addr(&hci_cmd_buffer[3], addr);
return 0;
}