Skip to content

Commit

Permalink
🐛 Fix freeMemory endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 26, 2021
1 parent bdb0716 commit 4f0932e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/AVR/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class MarlinHAL {
static inline void clear_reset_source() { MCUSR = 0; }

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/DUE/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/LINUX/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/LPC1768/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class MarlinHAL {
static void clear_reset_source();

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/NATIVE_SIM/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/SAMD51/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class MarlinHAL {
static void clear_reset_source();

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32F1/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/TEENSY31_32/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/TEENSY35_36/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class MarlinHAL {
static inline void clear_reset_source() {}

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/TEENSY40_41/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class MarlinHAL {
static void clear_reset_source();

// Free SRAM
static inline int freeMemory() { return freeMemory(); }
static inline int freeMemory() { return ::freeMemory(); }

//
// ADC Methods
Expand Down

0 comments on commit 4f0932e

Please sign in to comment.