Skip to content

Commit 63c1e3f

Browse files
committed
clean up
1 parent e749dc0 commit 63c1e3f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/rssi_callback/rssi_callback.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void connect_callback(uint16_t conn_handle)
9999

100100
void rssi_changed_callback(uint16_t conn_hdl, int8_t rssi)
101101
{
102+
(void) conn_hdl;
102103
Serial.printf("Rssi = %d", rssi);
103104
Serial.println();
104105
}

libraries/Bluefruit52Lib/examples/Peripheral/rssi_poll/rssi_poll.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void loop()
8686
BLEConnection* connection = Bluefruit.Connection(conn_hdl);
8787

8888
// get the RSSI value of this connection
89-
// monitorRssi() must be called previously (in callback)
89+
// monitorRssi() must be called previously (in connect callback)
9090
int8_t rssi = connection->getRssi();
9191

9292
Serial.printf("Rssi = %d", rssi);

0 commit comments

Comments
 (0)