summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 4a25b915ed..f38a8bfc16 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -218,7 +218,7 @@
/* Enable the directory cache and tagcache in RAM if we have
* plenty of RAM. Both features can be enabled independently. */
-#if (!defined(MEMORYSIZE) || (MEMORYSIZE > 8) || (MEM > 8)) && \
+#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \
!defined(BOOTLOADER)
#define HAVE_DIRCACHE
#ifdef HAVE_TAGCACHE