File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,8 +122,6 @@ void NimbleController::StartAdvertising() {
122122
123123 adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
124124 adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
125- adv_params.itvl_min = advInterval;
126- adv_params.itvl_max = advInterval + 100 ;
127125
128126 fields.flags = BLE_HS_ADV_F_DISC_GEN | BLE_HS_ADV_F_BREDR_UNSUP;
129127 fields.uuids128 = &dfuServiceUuid;
@@ -150,8 +148,6 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
150148 case BLE_GAP_EVENT_ADV_COMPLETE:
151149 NRF_LOG_INFO (" Advertising event : BLE_GAP_EVENT_ADV_COMPLETE" );
152150 NRF_LOG_INFO (" reason=%d; status=%d" , event->adv_complete .reason , event->connect .status );
153- if (advInterval < 7100 )
154- advInterval += 500 ;
155151 StartAdvertising ();
156152 break ;
157153
@@ -185,7 +181,6 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
185181 alertNotificationClient.Reset ();
186182 connectionHandle = BLE_HS_CONN_HANDLE_NONE;
187183 bleController.Disconnect ();
188- advInterval = 100 ;
189184 StartAdvertising ();
190185 break ;
191186
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ namespace Pinetime {
9494
9595 uint8_t addrType; // 1 = Random, 0 = PUBLIC
9696 uint16_t connectionHandle = BLE_HS_CONN_HANDLE_NONE;
97- uint16_t advInterval = 100 ; // multiplied by 0.625ms, must be in 32..16384
9897
9998 ble_uuid128_t dfuServiceUuid {
10099 .u {.type = BLE_UUID_TYPE_128},
You can’t perform that action at this time.
0 commit comments