Browse Source

Non-const REMEMBER needed for RESTORE

Scott Lahteine 4 years ago
parent
commit
924fa6045c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/core/utility.h

+ 1
- 1
Marlin/src/core/utility.h View File

71
   inline void restore() { ref_ = val_; }
71
   inline void restore() { ref_ = val_; }
72
 };
72
 };
73
 
73
 
74
-#define REMEMBER(N,X,V...) const restorer<typeof(X)> restorer_##N(X, ##V)
74
+#define REMEMBER(N,X,V...) restorer<typeof(X)> restorer_##N(X, ##V)
75
 #define RESTORE(N) restorer_##N.restore()
75
 #define RESTORE(N) restorer_##N.restore()
76
 
76
 
77
 // Converts from an uint8_t in the range of 0-255 to an uint8_t
77
 // Converts from an uint8_t in the range of 0-255 to an uint8_t

Loading…
Cancel
Save