Reduce Logger memory usage by optimizing variable sizes (#9161)

This commit is contained in:
J. Nick Koston
2025-06-23 14:06:02 +12:00
committed by GitHub
parent dc5cbd4df8
commit 59889a6286
4 changed files with 76 additions and 63 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ void HOT esp_log_vprintf_(int level, const char *tag, int line, const char *form
if (log == nullptr)
return;
log->log_vprintf_(level, tag, line, format, args);
log->log_vprintf_(static_cast<uint8_t>(level), tag, line, format, args);
#endif
}
@@ -41,7 +41,7 @@ void HOT esp_log_vprintf_(int level, const char *tag, int line, const __FlashStr
if (log == nullptr)
return;
log->log_vprintf_(level, tag, line, format, args);
log->log_vprintf_(static_cast<uint8_t>(level), tag, line, format, args);
#endif
}
#endif