We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7beab8e commit 21b6456Copy full SHA for 21b6456
libraries/BluetoothSerial/src/BTAdvertisedDeviceSet.cpp
@@ -42,7 +42,7 @@ std::string BTAdvertisedDeviceSet::toString() {
42
std::string res = "Name: " + getName() + ", Address: " + std::string(getAddress().toString().c_str(), getAddress().toString().length());
43
if (haveCOD()) {
44
char val[7]; //6 hex digits + null
45
- snprintf(val, sizeof(val), "%06x", getCOD() & 0xFFFFFF);
+ snprintf(val, sizeof(val), "%06lx", getCOD() & 0xFFFFFF);
46
res += ", cod: 0x";
47
res += val;
48
}
0 commit comments