From b734f6213b404d03791ba271cce61015c4f3a0b2 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Mon, 30 Dec 2019 17:25:05 +0100 Subject: [PATCH] sdcard.cpp: added compiler directive --- src/sdcard.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sdcard.cpp b/src/sdcard.cpp index 67c590b4..749944ad 100644 --- a/src/sdcard.cpp +++ b/src/sdcard.cpp @@ -1,5 +1,7 @@ // routines for writing data to an SD-card, if present +#if HAS_SDCARD) + // Local logging tag static const char TAG[] = __FILE__; @@ -64,4 +66,6 @@ void createFile(void) { } } return; -} \ No newline at end of file +} + +#endif // (HAS_SDCARD) \ No newline at end of file