mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
[snapshot] Keep the fallback name literal in flash on ESP8266
This commit is contained in:
@@ -211,7 +211,7 @@ bool Snapshot::take_snapshot(const char *filename) {
|
||||
exact = !name.empty();
|
||||
if (name_changed) {
|
||||
ESP_LOGW(TAG, "Requested snapshot name '%s' is not an acceptable file name, using '%s' instead", filename,
|
||||
name.empty() ? "a name made from the time" : name.c_str());
|
||||
name.empty() ? LOG_STR_LITERAL("a name made from the time") : name.c_str());
|
||||
}
|
||||
}
|
||||
if (name.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user