diff --git a/src/platforms/jeff/Makefile.inc b/src/platforms/jeff/Makefile.inc index bdbad4de..94efa963 100644 --- a/src/platforms/jeff/Makefile.inc +++ b/src/platforms/jeff/Makefile.inc @@ -11,6 +11,10 @@ ifeq ($(CUSTOM_SER), 1) CFLAGS += -DCUSTOM_SER endif +ifeq ($(CONSOLE_NO_AUTO_CRLF), 1) +CFLAGS += -DCONSOLE_NO_AUTO_CRLF +endif + CFLAGS += -mthumb -mcpu=cortex-m0plus \ -DSAMD -DSAMD21E17 -DBLACKMAGIC -I../libopencm3/include \ -Iplatforms/samd -msoft-float -ffunction-sections -fdata-sections -MD diff --git a/src/platforms/samd/usbuart.c b/src/platforms/samd/usbuart.c index 0d9c992e..3bb48a69 100644 --- a/src/platforms/samd/usbuart.c +++ b/src/platforms/samd/usbuart.c @@ -58,7 +58,7 @@ struct { /* non blocking putc function */ static void usart_putc(char c) { -#ifndef CONSOLE_NO_AUTO_CRLF +#ifdef CONSOLE_NO_AUTO_CRLF if (c == '\n') usart_putc('\r'); #endif