diff --git a/src/ble/ble.c b/src/ble/ble.c index d703d52..c3700b1 100644 --- a/src/ble/ble.c +++ b/src/ble/ble.c @@ -105,7 +105,6 @@ #define DEVICE_NAME "Crazyflie" /**< Name of device. Will be included in the advertising data. */ #define MANUFACTURER_NAME "Bitcraze AB" /**< Manufacturer. Will be passed to Device Information Service. */ #define APP_ADV_INTERVAL 300 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 187.5 ms). */ -#define APP_ADV_TIMEOUT_IN_SECONDS 180 /**< The advertising timeout in units of seconds. */ #define APP_TIMER_PRESCALER 0 /**< Value of the RTC1 PRESCALER register. */ #define APP_TIMER_OP_QUEUE_SIZE 4 /**< Size of timer operation queues. */ @@ -787,7 +786,7 @@ static void advertising_init(void) memset(&options, 0, sizeof(options)); options.ble_adv_fast_enabled = true; options.ble_adv_fast_interval = APP_ADV_INTERVAL; - options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS; + options.ble_adv_fast_timeout = BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED; err_code = ble_advertising_init(&advdata, NULL, &options, on_adv_evt, NULL); APP_ERROR_CHECK(err_code);