Skip to content

Commit 2d9a781

Browse files
fix typos and traces
1 parent c51dc2f commit 2d9a781

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,14 +2392,14 @@ ble_error_t Gap::startAdvertising(
23922392
_pal_gap.set_advertising_set_random_address(handle, *random_address);
23932393
}
23942394

2395-
/* check we hanve't run out of space to remember parameters */
2395+
/* check we haven't run out of space to remember parameters */
23962396
if (_advertising_enable_command_params.number_of_handles == BLE_GAP_HOST_MAX_OUTSTANDING_ADVERTISING_START_COMMANDS) {
23972397
/* try to process early */
23982398
tr_debug("Processing enable queue early as run out of queue space");
23992399
process_enable_queue();
24002400
/* if the processing didn't clear the handles we cannot continue */
24012401
if (_advertising_enable_command_params.number_of_handles) {
2402-
tr_debug("Cannot enable set as no memory to record the parameters");
2402+
tr_warn("Cannot enable set as no memory to record the parameters");
24032403
return BLE_ERROR_NO_MEM;
24042404
}
24052405
}
@@ -2471,7 +2471,7 @@ void Gap::process_enable_queue()
24712471
for (size_t i = 0; i < BLE_GAP_MAX_ADVERTISING_SETS; ++i) {
24722472
if (_pending_sets.get(i)) {
24732473
/* we have to wait until nothing is pending */
2474-
tr_debug("Cannot enable sets as pending sets present");
2474+
tr_info("Cannot enable sets as pending sets present, will retry later");
24752475
return;
24762476
}
24772477
}

connectivity/FEATURE_BLE/source/generic/GapImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ class Gap :
10011001

10021002
#if BLE_FEATURE_EXTENDED_ADVERTISING
10031003
#if BLE_GAP_HOST_MAX_OUTSTANDING_ADVERTISING_START_COMMANDS < 1 || BLE_GAP_HOST_MAX_OUTSTANDING_ADVERTISING_START_COMMANDS > BLE_GAP_MAX_ADVERTISING_SETS
1004-
#error "BLE_GAP_HOST_MAX_OUTSTANDING_ADVERTISING_START_COMMANDS must be at least 1 and not bigget than BLE_GAP_MAX_ADVERTISING_SETS"
1004+
#error "BLE_GAP_HOST_MAX_OUTSTANDING_ADVERTISING_START_COMMANDS must be at least 1 and not bigger than BLE_GAP_MAX_ADVERTISING_SETS"
10051005
#endif
10061006
struct AdvertisingEnableCommandParams_t {
10071007
adv_duration_t max_durations[BLE_GAP_HOST_MAX_OUTSTANDING_ADVERTISING_START_COMMANDS];

0 commit comments

Comments
 (0)