mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-16 16:20:50 +00:00
gap: allow to set page timeout before power up
This commit is contained in:
parent
478f65a47f
commit
c874aa4683
@ -4800,7 +4800,6 @@ static void hci_state_reset(void){
|
||||
|
||||
#ifdef ENABLE_CLASSIC
|
||||
hci_stack->inquiry_lap = GAP_IAC_GENERAL_INQUIRY;
|
||||
hci_stack->page_timeout = 0x6000; // ca. 15 sec
|
||||
|
||||
hci_stack->gap_tasks_classic =
|
||||
GAP_TASK_SET_DEFAULT_LINK_POLICY |
|
||||
@ -4922,6 +4921,9 @@ void hci_init(const hci_transport_t *transport, const void *config){
|
||||
// Link Supervision Timeout
|
||||
hci_stack->link_supervision_timeout = HCI_LINK_SUPERVISION_TIMEOUT_DEFAULT;
|
||||
|
||||
// Page Timeout
|
||||
hci_stack->page_timeout = 0x6000; // ca. 15 sec
|
||||
|
||||
// All ACL packet types are enabledh
|
||||
hci_stack->enabled_packet_types_acl = ACL_PACKET_TYPES_ALL;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user