Skip to content

Commit 5c7b8c8

Browse files
committed
Nordic BLE: Add default parameter to get the local instance of nrF5xn
1 parent 8e7936d commit 5c7b8c8

File tree

2 files changed

+2
-2
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC

2 files changed

+2
-2
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF51/source/nRF5xn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class nRF5xn : public BLEInstanceBase
134134
virtual void processEvents();
135135

136136
public:
137-
static nRF5xn& Instance(BLE::InstanceID_t instanceId);
137+
static nRF5xn& Instance(BLE::InstanceID_t instanceId = BLE::DEFAULT_INSTANCE);
138138

139139
private:
140140
bool initialized;

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source/nRF5xn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class nRF5xn : public BLEInstanceBase
133133
virtual void processEvents();
134134

135135
public:
136-
static nRF5xn& Instance(BLE::InstanceID_t instanceId);
136+
static nRF5xn& Instance(BLE::InstanceID_t instanceId = BLE::DEFAULT_INSTANCE);
137137

138138
private:
139139
bool initialized;

0 commit comments

Comments
 (0)