Explorar el Código

Tweak REMEMBER

Scott Lahteine hace 5 años
padre
commit
fe6ba4fd70
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/core/utility.h

+ 1
- 1
Marlin/src/core/utility.h Ver fichero

@@ -59,7 +59,7 @@ public:
59 59
   inline void restore() { ref_ = val_; }
60 60
 };
61 61
 
62
-#define REMEMBER(N,X, ...) restorer<typeof(X)> restorer_##N(X, ##__VA_ARGS__)
62
+#define REMEMBER(N,X, ...) const restorer<typeof(X)> restorer_##N(X, ##__VA_ARGS__)
63 63
 #define RESTORE(N) restorer_##N.restore()
64 64
 
65 65
 // Converts from an uint8_t in the range of 0-255 to an uint8_t

Loading…
Cancelar
Guardar