Skip to content

Commit b0d87ad

Browse files
don't print local address after privacy is turned on
1 parent e29d2bf commit b0d87ad

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

BLE_Privacy/source/main.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ class PrivacyDevice : private mbed::NonCopyable<PrivacyDevice>,
179179
/** This is called by Gap to notify the application we connected */
180180
void on_connect(const Gap::ConnectionCallbackParams_t *connection_event)
181181
{
182-
printf("Connected to: ");
182+
printf("Connected to peer: ");
183183
print_address(connection_event->peerAddr);
184-
printf("Resolvable address: ");
184+
printf("Peer random resolvable address: ");
185185
print_address(connection_event->peerResolvableAddr);
186186

187187
_handle = connection_event->handle;
@@ -348,8 +348,6 @@ class PrivacyPeripheral : public PrivacyDevice {
348348

349349
printf("Advertising...\r\n");
350350

351-
print_local_address();
352-
353351
return true;
354352
}
355353

@@ -465,8 +463,6 @@ class PrivacyCentral : public PrivacyDevice {
465463

466464
printf("Scanning...\r\n");
467465

468-
print_local_address();
469-
470466
return true;
471467
}
472468

0 commit comments

Comments
 (0)