summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/debug.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/debug.h b/firmware/debug.h
index 878da295bc..f8aa7d4113 100644
--- a/firmware/debug.h
+++ b/firmware/debug.h
@@ -26,13 +26,18 @@ extern void ldebugf(char* file, int line, char *fmt, ...);
#ifdef __GNUC__
/* */
-#if defined(DEBUG) || defined(SIMULATOR)
+#if defined(SIMULATOR)
#define DEBUGF debugf
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
#else
+#if defined(DEBUG)
+#define DEBUGF debugf
+#define LDEBUGF debugf
+#else
#define DEBUGF(...)
#define LDEBUGF(...)
#endif
+#endif
#else