diff --git a/Marlin/src/feature/power_loss_recovery.cpp b/Marlin/src/feature/power_loss_recovery.cpp index ebaa1dfc12..305b79f522 100644 --- a/Marlin/src/feature/power_loss_recovery.cpp +++ b/Marlin/src/feature/power_loss_recovery.cpp @@ -35,6 +35,7 @@ bool PrintJobRecovery::enabled; // Initialized by settings.load() SdFile PrintJobRecovery::file; job_recovery_info_t PrintJobRecovery::info; +const char PrintJobRecovery::filename[5] = "/PLR"; #include "../sd/cardreader.h" #include "../lcd/ultralcd.h" diff --git a/Marlin/src/feature/power_loss_recovery.h b/Marlin/src/feature/power_loss_recovery.h index 993a8dbb33..d58285e563 100644 --- a/Marlin/src/feature/power_loss_recovery.h +++ b/Marlin/src/feature/power_loss_recovery.h @@ -103,7 +103,7 @@ typedef struct { class PrintJobRecovery { public: - static constexpr char filename[5] = "/PLR"; + static const char filename[5]; static SdFile file; static job_recovery_info_t info;