From 1c3df51f87c35a334f44ee1dc48e2adb0cd2b1bc Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Sat, 27 Jul 2019 03:34:49 -0600 Subject: [PATCH] vsnprintf patch redux (#14725) --- Marlin/src/HAL/shared/Marduino.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/HAL/shared/Marduino.h b/Marlin/src/HAL/shared/Marduino.h index 1cf51042c..2ba3974a4 100644 --- a/Marlin/src/HAL/shared/Marduino.h +++ b/Marlin/src/HAL/shared/Marduino.h @@ -41,10 +41,6 @@ #undef sq #define sq(x) ((x)*(x)) -#ifndef vsnprintf_P - #define vsnprintf_P vsnprintf -#endif - #ifndef SBI #define SBI(A,B) (A |= (1 << (B))) #endif @@ -58,6 +54,10 @@ inline const char* strchr_P(const char *s, int c) { return strchr(s,c); } //#define strchr_P(s,c) strchr(s,c) #endif + + #ifndef vsnprintf_P + #define vsnprintf_P vsnprintf + #endif #endif // Restart causes