Skip to content

Commit 524b9a7

Browse files
committed
BLE: Fix constant declaration of ble::AdvertisingParameters.
1 parent 8c3560f commit 524b9a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

features/FEATURE_BLE/ble/gap/AdvertisingParameters.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ namespace ble {
4848
*/
4949
class AdvertisingParameters {
5050

51-
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MIN;
51+
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MIN = 0x400;
5252

53-
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MAX;
53+
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MAX = 0x800;
5454

5555
/**
5656
* Minimum Advertising interval for scannable and nonconnectable
5757
* undirected events in 625us units.
5858
*
5959
* @note Equal to 100ms.
6060
*/
61-
static const uint32_t GAP_ADV_PARAMS_INTERVAL_MIN_NONCON;
61+
static const uint32_t GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0;
6262

6363
public:
6464
/**

features/FEATURE_BLE/source/gap/AdvertisingParameters.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
namespace ble {
2020

21-
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MIN = 0x400;
22-
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MAX = 0x800;
23-
const uint32_t AdvertisingParameters::GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0;
21+
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MIN;
22+
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MAX;
23+
const uint32_t AdvertisingParameters::GAP_ADV_PARAMS_INTERVAL_MIN_NONCON;
2424

2525
} // namespace ble

0 commit comments

Comments
 (0)