From 924fa6045cc6ccef29cdcdb37f93d44631e5baeb Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 11 Mar 2020 15:24:27 -0500 Subject: [PATCH] Non-const REMEMBER needed for RESTORE --- 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 c2da02919..0c2e91d31 100644 --- a/Marlin/src/core/utility.h +++ b/Marlin/src/core/utility.h @@ -71,7 +71,7 @@ public: inline void restore() { ref_ = val_; } }; -#define REMEMBER(N,X,V...) const restorer restorer_##N(X, ##V) +#define REMEMBER(N,X,V...) restorer restorer_##N(X, ##V) #define RESTORE(N) restorer_##N.restore() // Converts from an uint8_t in the range of 0-255 to an uint8_t