From fe6ba4fd70d1797f2084a66aefbe561ee620d5c7 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 10 Sep 2019 01:47:26 -0500 Subject: [PATCH] Tweak REMEMBER --- Marlin/src/core/utility.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/core/utility.h b/Marlin/src/core/utility.h index 63597fd41..a9e23b5e1 100644 --- a/Marlin/src/core/utility.h +++ b/Marlin/src/core/utility.h @@ -59,7 +59,7 @@ public: inline void restore() { ref_ = val_; } }; -#define REMEMBER(N,X, ...) restorer restorer_##N(X, ##__VA_ARGS__) +#define REMEMBER(N,X, ...) const restorer restorer_##N(X, ##__VA_ARGS__) #define RESTORE(N) restorer_##N.restore() // Converts from an uint8_t in the range of 0-255 to an uint8_t