mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
Merge branch 'develop' of https://github.com/bluekitchen/btstack into develop
This commit is contained in:
commit
fef69b25dc
@ -190,7 +190,7 @@ int btstack_main(void)
|
||||
// crypto
|
||||
btstack_crypto_init();
|
||||
|
||||
#ifdef ENABLE_GATT_BEARER
|
||||
#ifdef ENABLE_MESH_GATT_BEARER
|
||||
// l2cap
|
||||
l2cap_init();
|
||||
|
||||
@ -213,7 +213,7 @@ int btstack_main(void)
|
||||
// mesh
|
||||
mesh_init();
|
||||
|
||||
#ifdef ENABLE_GATT_BEARER
|
||||
#ifdef ENABLE_MESH_GATT_BEARER
|
||||
// setup connectable advertisments
|
||||
bd_addr_t null_addr;
|
||||
memset(null_addr, 0, 6);
|
||||
|
@ -288,8 +288,10 @@ static void hci_transport_h4_block_read(void){
|
||||
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
|
||||
hci_transport_h4_reset_statemachine();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
case H4_OFF:
|
||||
bytes_to_read = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND
|
||||
|
@ -451,6 +451,7 @@ static void pb_adv_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
||||
case HCI_EVENT_MESH_META:
|
||||
switch(packet[2]){
|
||||
case MESH_SUBEVENT_CAN_SEND_NOW:
|
||||
#ifdef ENABLE_MESH_PROVISIONER
|
||||
if (link_state == LINK_STATE_W4_ACK){
|
||||
// build packet
|
||||
uint8_t buffer[22];
|
||||
@ -467,6 +468,7 @@ static void pb_adv_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
||||
btstack_run_loop_add_timer(&pb_adv_random_delay_timer);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
if (link_state == LINK_STATE_CLOSING){
|
||||
log_info("link close %08x", pb_adv_link_id);
|
||||
printf("PB-ADV: Sending Link Close\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user