mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-13 15:41:17 +00:00
re-enable adv, use more sane adv min/max
This commit is contained in:
parent
1589c8a6ae
commit
5e0e757f00
@ -219,26 +219,26 @@ static void gap_run(){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (todos & SET_ADVERTISEMENT_PARAMS){
|
if (todos & SET_ADVERTISEMENT_PARAMS){
|
||||||
// todos &= ~SET_ADVERTISEMENT_PARAMS;
|
todos &= ~SET_ADVERTISEMENT_PARAMS;
|
||||||
// uint8_t adv_type = gap_adv_type();
|
uint8_t adv_type = gap_adv_type();
|
||||||
// bd_addr_t null_addr;
|
bd_addr_t null_addr;
|
||||||
// memset(null_addr, 0, 6);
|
memset(null_addr, 0, 6);
|
||||||
// uint16_t adv_int_min = 0x0030;
|
uint16_t adv_int_min = 0x800;
|
||||||
// uint16_t adv_int_max = 0x0100;
|
uint16_t adv_int_max = 0x800;
|
||||||
// switch (adv_type){
|
switch (adv_type){
|
||||||
// case 0:
|
case 0:
|
||||||
// hci_send_cmd(&hci_le_set_advertising_parameters, adv_int_min, adv_int_max, adv_type, gap_privacy, 0, &null_addr, 0x07, 0x00);
|
hci_send_cmd(&hci_le_set_advertising_parameters, adv_int_min, adv_int_max, adv_type, gap_privacy, 0, &null_addr, 0x07, 0x00);
|
||||||
// break;
|
break;
|
||||||
// case 1:
|
case 1:
|
||||||
// hci_send_cmd(&hci_le_set_advertising_parameters, adv_int_min, adv_int_max, adv_type, gap_privacy, tester_address_type, &tester_address, 0x07, 0x00);
|
hci_send_cmd(&hci_le_set_advertising_parameters, adv_int_min, adv_int_max, adv_type, gap_privacy, tester_address_type, &tester_address, 0x07, 0x00);
|
||||||
// break;
|
break;
|
||||||
// case 3:
|
case 3:
|
||||||
// hci_send_cmd(&hci_le_set_advertising_parameters, adv_int_min, adv_int_max, adv_type, gap_privacy, 0, &null_addr, 0x07, 0x00);
|
hci_send_cmd(&hci_le_set_advertising_parameters, adv_int_min, adv_int_max, adv_type, gap_privacy, 0, &null_addr, 0x07, 0x00);
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (todos & SET_SCAN_RESPONSE_DATA){
|
if (todos & SET_SCAN_RESPONSE_DATA){
|
||||||
printf("GAP_RUN: set scan response data\n");
|
printf("GAP_RUN: set scan response data\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user