| 281 | } |
| 282 | |
| 283 | void printMemoryUsage(const char *msg) { |
| 284 | Serial.printf( |
| 285 | "%s:\nPSRAM: [Free: %lu, max alloc: %lu],\nRAM: [Free: %lu, " |
| 286 | "max alloc: %lu]\n\n", |
| 287 | msg, |
| 288 | ESP.getFreePsram(), |
| 289 | ESP.getMaxAllocPsram(), |
| 290 | ESP.getFreeHeap(), |
| 291 | ESP.getMaxAllocHeap() |
| 292 | ); |
| 293 | } |
| 294 | |
| 295 | String repeatString(int length, String character) { |
| 296 | String result = ""; |
no test coverage detected