gap: use gap_inquiry_set_scan_activity

This commit is contained in:
Matthias Ringwald 2021-10-28 09:56:28 +02:00
parent c61d23ae45
commit 1dc973e755
2 changed files with 2 additions and 2 deletions

View File

@ -754,7 +754,7 @@ void gap_inquiry_set_lap(uint32_t lap);
* @param inquiry_scan_interval range: 0x0012 to 0x1000; only even values are valid, Time = N * 0.625 ms
* @param inquiry_scan_window range: 0x0011 to 0x1000; Time = N * 0.625 ms
*/
void gap_inquiry_set_activity(uint16_t inquiry_scan_interval, uint16_t inquiry_scan_window);
void gap_inquiry_set_scan_activity(uint16_t inquiry_scan_interval, uint16_t inquiry_scan_window);
/**
* @brief Remote Name Request

View File

@ -6404,7 +6404,7 @@ void gap_inquiry_set_lap(uint32_t lap){
hci_stack->inquiry_lap = lap;
}
void gap_inquiry_set_activity(uint16_t inquiry_scan_interval, uint16_t inquiry_scan_window){
void gap_inquiry_set_scan_activity(uint16_t inquiry_scan_interval, uint16_t inquiry_scan_window){
hci_stack->inquiry_scan_interval = inquiry_scan_interval;
hci_stack->inquiry_scan_window = inquiry_scan_window;
hci_stack->gap_tasks |= GAP_TASK_WRITE_INQUIRY_SCAN_ACTIVITY;