浏览代码

Non-const REMEMBER needed for RESTORE

Scott Lahteine 4 年前
父节点
当前提交
924fa6045c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/core/utility.h

+ 1
- 1
Marlin/src/core/utility.h 查看文件

@@ -71,7 +71,7 @@ public:
71 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 75
 #define RESTORE(N) restorer_##N.restore()
76 76
 
77 77
 // Converts from an uint8_t in the range of 0-255 to an uint8_t

正在加载...
取消
保存