summaryrefslogtreecommitdiff
path: root/firmware/logf.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 0f05c6590d..bdc5ad9cc0 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -62,6 +62,7 @@ static int logdiskfindex;
62unsigned char logfbuffer[MAX_LOGF_SIZE]; 62unsigned char logfbuffer[MAX_LOGF_SIZE];
63int logfindex; 63int logfindex;
64bool logfwrap; 64bool logfwrap;
65bool logfenabled = true;
65#endif 66#endif
66 67
67#ifdef HAVE_REMOTE_LCD 68#ifdef HAVE_REMOTE_LCD
@@ -214,6 +215,9 @@ static int logf_push(void *userp, unsigned char c)
214 215
215void _logf(const char *fmt, ...) 216void _logf(const char *fmt, ...)
216{ 217{
218 if (!logfenabled)
219 return;
220
217 #ifdef USB_ENABLE_SERIAL 221 #ifdef USB_ENABLE_SERIAL
218 int old_logfindex = logfindex; 222 int old_logfindex = logfindex;
219 #endif 223 #endif