diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/logf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/logf.c b/firmware/logf.c index 3a6b696b1a..fc81ced779 100644 --- a/firmware/logf.c +++ b/firmware/logf.c | |||
@@ -188,7 +188,7 @@ static int logf_push(void *userp, unsigned char c) | |||
188 | logfbuffer[logfindex++] = c; | 188 | logfbuffer[logfindex++] = c; |
189 | check_logfindex(); | 189 | check_logfindex(); |
190 | 190 | ||
191 | #if defined(HAVE_SERIAL) && !defined(SIMULATOR) | 191 | #if defined(HAVE_SERIAL) && !defined(SIMULATOR) && defined(LOGF_SERIAL) |
192 | if(c != '\0') | 192 | if(c != '\0') |
193 | { | 193 | { |
194 | char buf[2]; | 194 | char buf[2]; |
@@ -225,7 +225,7 @@ void _logf(const char *fmt, ...) | |||
225 | /* add trailing zero */ | 225 | /* add trailing zero */ |
226 | logf_push(NULL, '\0'); | 226 | logf_push(NULL, '\0'); |
227 | 227 | ||
228 | #if defined(HAVE_SERIAL) && !defined(SIMULATOR) | 228 | #if defined(HAVE_SERIAL) && !defined(SIMULATOR) && defined(LOGF_SERIAL) |
229 | serial_tx("\r\n"); | 229 | serial_tx("\r\n"); |
230 | #endif | 230 | #endif |
231 | #ifdef USB_ENABLE_SERIAL | 231 | #ifdef USB_ENABLE_SERIAL |