Bläddra i källkod

🐛 Fix `freeMemory` endless loop

Followup to #23295
Scott Lahteine 3 år sedan
förälder
incheckning
4f0932e5c1

+ 1
- 1
Marlin/src/HAL/AVR/HAL.h Visa fil

@@ -205,7 +205,7 @@ public:
205 205
   static inline void clear_reset_source() { MCUSR = 0; }
206 206
 
207 207
   // Free SRAM
208
-  static inline int freeMemory() { return freeMemory(); }
208
+  static inline int freeMemory() { return ::freeMemory(); }
209 209
 
210 210
   //
211 211
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/DUE/HAL.h Visa fil

@@ -196,7 +196,7 @@ public:
196 196
   static inline void clear_reset_source() {}
197 197
 
198 198
   // Free SRAM
199
-  static inline int freeMemory() { return freeMemory(); }
199
+  static inline int freeMemory() { return ::freeMemory(); }
200 200
 
201 201
   //
202 202
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/LINUX/HAL.h Visa fil

@@ -126,7 +126,7 @@ public:
126 126
   static inline void clear_reset_source() {}
127 127
 
128 128
   // Free SRAM
129
-  static inline int freeMemory() { return freeMemory(); }
129
+  static inline int freeMemory() { return ::freeMemory(); }
130 130
 
131 131
   //
132 132
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/LPC1768/HAL.h Visa fil

@@ -219,7 +219,7 @@ public:
219 219
   static void clear_reset_source();
220 220
 
221 221
   // Free SRAM
222
-  static inline int freeMemory() { return freeMemory(); }
222
+  static inline int freeMemory() { return ::freeMemory(); }
223 223
 
224 224
   //
225 225
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/NATIVE_SIM/HAL.h Visa fil

@@ -228,7 +228,7 @@ public:
228 228
   static inline void clear_reset_source() {}
229 229
 
230 230
   // Free SRAM
231
-  static inline int freeMemory() { return freeMemory(); }
231
+  static inline int freeMemory() { return ::freeMemory(); }
232 232
 
233 233
   //
234 234
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/SAMD51/HAL.h Visa fil

@@ -176,7 +176,7 @@ public:
176 176
   static inline void clear_reset_source() {}
177 177
 
178 178
   // Free SRAM
179
-  static inline int freeMemory() { return freeMemory(); }
179
+  static inline int freeMemory() { return ::freeMemory(); }
180 180
 
181 181
   //
182 182
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/STM32/HAL.h Visa fil

@@ -226,7 +226,7 @@ public:
226 226
   static void clear_reset_source();
227 227
 
228 228
   // Free SRAM
229
-  static inline int freeMemory() { return freeMemory(); }
229
+  static inline int freeMemory() { return ::freeMemory(); }
230 230
 
231 231
   //
232 232
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/STM32F1/HAL.h Visa fil

@@ -270,7 +270,7 @@ public:
270 270
   static inline void clear_reset_source() {}
271 271
 
272 272
   // Free SRAM
273
-  static inline int freeMemory() { return freeMemory(); }
273
+  static inline int freeMemory() { return ::freeMemory(); }
274 274
 
275 275
   //
276 276
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/TEENSY31_32/HAL.h Visa fil

@@ -155,7 +155,7 @@ public:
155 155
   static inline void clear_reset_source() {}
156 156
 
157 157
   // Free SRAM
158
-  static inline int freeMemory() { return freeMemory(); }
158
+  static inline int freeMemory() { return ::freeMemory(); }
159 159
 
160 160
   //
161 161
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/TEENSY35_36/HAL.h Visa fil

@@ -160,7 +160,7 @@ public:
160 160
   static inline void clear_reset_source() {}
161 161
 
162 162
   // Free SRAM
163
-  static inline int freeMemory() { return freeMemory(); }
163
+  static inline int freeMemory() { return ::freeMemory(); }
164 164
 
165 165
   //
166 166
   // ADC Methods

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/HAL.h Visa fil

@@ -182,7 +182,7 @@ public:
182 182
   static void clear_reset_source();
183 183
 
184 184
   // Free SRAM
185
-  static inline int freeMemory() { return freeMemory(); }
185
+  static inline int freeMemory() { return ::freeMemory(); }
186 186
 
187 187
   //
188 188
   // ADC Methods

Laddar…
Avbryt
Spara