mirror of
https://github.com/esphome/esphome.git
synced 2026-02-19 16:05:35 -07:00
[script] ESP8266: Store log format strings in PROGMEM (saves 240 bytes RAM)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user