Scott Lahteine 5 lat temu
rodzic
commit
fe6ba4fd70
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/src/core/utility.h

+ 1
- 1
Marlin/src/core/utility.h Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz