[script] ESP8266: Store log format strings in PROGMEM (saves 240 bytes RAM) (#10614)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-09-05 17:56:00 -05:00
1 parent f1806046a9
commit 91b2f75d04
2 files changed
+25 -5

No files matched your search

+6
View File
@@ -6,9 +6,15 @@ namespace script {
static const char *const TAG = "script";
#ifdef USE_STORE_LOG_STR_IN_FLASH
void ScriptLogger::esp_log_(int level, int line, const __FlashStringHelper *format, const char *param) {
esp_log_printf_(level, TAG, line, format, param);
}
#else
void ScriptLogger::esp_log_(int level, int line, const char *format, const char *param) {
esp_log_printf_(level, TAG, line, format, param);
}
#endif
} // namespace script
} // namespace esphome