Add CMakeLists.txt.

Fix compilation in strict enviroments.
Fix compliation in IDF v4.0.
This commit is contained in:
h2zero
2020-03-31 20:16:27 -06:00
parent a77f33e251
commit 74ba03e3a8
12 changed files with 71 additions and 18 deletions

View File

@@ -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;