소스 검색

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

Loading…
취소
저장