Procházet zdrojové kódy

Non-const REMEMBER needed for RESTORE

Scott Lahteine před 5 roky
rodič
revize
924fa6045c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      Marlin/src/core/utility.h

+ 1
- 1
Marlin/src/core/utility.h Zobrazit soubor

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…
Zrušit
Uložit