mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2026-01-27 09:32:19 +01:00
Add CMakeLists.txt.
Fix compilation in strict enviroments. Fix compliation in IDF v4.0.
This commit is contained in:
@@ -504,7 +504,7 @@ std::string NimBLEAdvertisedDevice::toString() {
|
||||
}
|
||||
|
||||
if (haveTXPower()) {
|
||||
char val[4];
|
||||
char val[5];
|
||||
snprintf(val, sizeof(val), "%d", getTXPower());
|
||||
res += ", txPower: ";
|
||||
res += val;
|
||||
|
||||
Reference in New Issue
Block a user