also set scan response

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-25 09:03:58 +00:00
parent dcc34cfc51
commit 646c8f51e6

View File

@ -223,11 +223,11 @@ static void gap_run(){
return;
}
// if (todos & SET_SCAN_RESPONSE_DATA){
// todos &= ~SET_SCAN_RESPONSE_DATA;
// hci_send_cmd(&hci_le_set_scan_response_data, adv_data_len, adv_data);
// return;
// }
if (todos & SET_SCAN_RESPONSE_DATA){
todos &= ~SET_SCAN_RESPONSE_DATA;
hci_send_cmd(&hci_le_set_scan_response_data, adv_data_len, adv_data);
return;
}
if (todos & ENABLE_ADVERTISEMENTS){
todos &= ~ENABLE_ADVERTISEMENTS;