mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 15:41:00 +00:00
add support for 8 byte data blocks used in ANT
This commit is contained in:
parent
baa335574b
commit
a5ca8a8f32
@ -108,6 +108,11 @@ uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, const hci_cmd_t *cmd,
|
||||
hci_cmd_buffer[pos++] = ptr[1];
|
||||
hci_cmd_buffer[pos++] = ptr[0];
|
||||
break;
|
||||
case 'D': // 8 byte data block
|
||||
ptr = va_arg(argptr, uint8_t *);
|
||||
memcpy(&hci_cmd_buffer[pos], ptr, 8);
|
||||
pos += 8;
|
||||
break;
|
||||
case 'E': // Extended Inquiry Information 240 octets
|
||||
ptr = va_arg(argptr, uint8_t *);
|
||||
memcpy(&hci_cmd_buffer[pos], ptr, 240);
|
||||
|
Loading…
x
Reference in New Issue
Block a user