Skip to content

Commit 77e678e

Browse files
committed
Fix size of rssi in toString()
1 parent 228acb8 commit 77e678e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BLE/src/BLEAdvertisedDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ String BLEAdvertisedDevice::toString() {
605605
res += val;
606606
}
607607
if (haveRSSI()) {
608-
char val[4];
608+
char val[5];
609609
snprintf(val, sizeof(val), "%i", getRSSI());
610610
res += ", rssi: ";
611611
res += val;

0 commit comments

Comments
 (0)