From 8c964949fde3e475c7f94cba9d46bd338f15916e Mon Sep 17 00:00:00 2001 From: Tony Kuker <34318535+akuker@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:57:16 -0600 Subject: [PATCH] Allow Arduino flags to be set outside of this file --- src/SdFatConfig.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SdFatConfig.h b/src/SdFatConfig.h index 353aa101..e994c3bc 100644 --- a/src/SdFatConfig.h +++ b/src/SdFatConfig.h @@ -87,13 +87,18 @@ #define DESTRUCTOR_CLOSES_FILE 0 #endif // DESTRUCTOR_CLOSES_FILE //------------------------------------------------------------------------------ - +#ifndef ENABLE_ARDUINO_FEATURES /** For Debug - must be one */ #define ENABLE_ARDUINO_FEATURES 1 +#endif +#ifndef ENABLE_ARDUINO_SERIAL /** For Debug - must be one */ #define ENABLE_ARDUINO_SERIAL 1 +#endif +#ifndef ENABLE_ARDUINO_STRING /** For Debug - must be one */ #define ENABLE_ARDUINO_STRING 1 +#endif //------------------------------------------------------------------------------ #if ENABLE_ARDUINO_FEATURES #include "Arduino.h"