From ee5e46b46bbcf71d3e73bbf26a7382f51364cbea Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 2 Aug 2019 05:21:44 -0500 Subject: [PATCH] Patch PrintJobRecovery::filename --- Marlin/src/feature/power_loss_recovery.cpp | 1 + Marlin/src/feature/power_loss_recovery.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;