Skip to content

Commit 111ff3a

Browse files
committed
Remove type from address string.
1 parent f4499a0 commit 111ff3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/NimBLEAddress.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,10 @@ bool NimBLEAddress::operator !=(const NimBLEAddress & rhs) const {
169169
* that accept std::string and/or or it's methods as a parameter.
170170
*/
171171
NimBLEAddress::operator std::string() const {
172-
char buffer[28];
173-
snprintf(buffer, sizeof(buffer), "%02x:%02x:%02x:%02x:%02x:%02x type: %d",
172+
char buffer[18];
173+
snprintf(buffer, sizeof(buffer), "%02x:%02x:%02x:%02x:%02x:%02x",
174174
m_address[5], m_address[4], m_address[3],
175-
m_address[2], m_address[1], m_address[0],
176-
m_addrType);
175+
m_address[2], m_address[1], m_address[0]);
177176
return std::string(buffer);
178177
} // operator std::string
179178

0 commit comments

Comments
 (0)