mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
add check for minimal hci_acl_payload_size
This commit is contained in:
parent
23f5e709c0
commit
db9ab65bf0
@ -60,8 +60,8 @@ extern "C" {
|
|||||||
#define L2CAP_DEFAULT_MTU 672
|
#define L2CAP_DEFAULT_MTU 672
|
||||||
|
|
||||||
// check L2CAP MTU
|
// check L2CAP MTU
|
||||||
#if (L2CAP_MINIMAL_MTU + COMPLETE_L2CAP_HEADER) < HCI_PACKET_BUFFER_SIZE
|
#if (L2CAP_MINIMAL_MTU + L2CAP_HEADER_SIZE) > HCI_ACL_PAYLOAD_SIZE
|
||||||
#warning "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP MTU of 48 bytes"
|
#error "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP MTU of 48 bytes"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void l2cap_init(void);
|
void l2cap_init(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user