mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-06 09:09:59 +00:00
Merge pull request #55 from andrzej-kaczmarek/build-fix
nimble/host: Fix build with ext adv disabled
This commit is contained in:
@@ -1349,7 +1349,7 @@ ble_gap_rx_conn_complete(struct hci_le_conn_complete *evt, uint8_t instance)
|
||||
*/
|
||||
#if !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
if (ble_gap_adv_active()) {
|
||||
ble_gap_adv_finished(0, 0, 0);
|
||||
ble_gap_adv_finished(0, 0, 0, 0);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
@@ -1588,7 +1588,7 @@ ble_gap_slave_timer(void)
|
||||
ble_gap_slave_reset_state(0);
|
||||
|
||||
/* Indicate to application that advertising has stopped. */
|
||||
ble_gap_adv_finished(0, BLE_HS_ETIMEOUT, 0);
|
||||
ble_gap_adv_finished(0, BLE_HS_ETIMEOUT, 0, 0);
|
||||
|
||||
return BLE_HS_FOREVER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user