From 3a90439778c3605b9fa004c2c8e909297d523870 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sat, 7 Oct 2017 16:01:54 +0100 Subject: [PATCH] Make serial line special char values configurable --- os/dev/serial-line.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os/dev/serial-line.c b/os/dev/serial-line.c index 6c54331d8..80ff5510b 100644 --- a/os/dev/serial-line.c +++ b/os/dev/serial-line.c @@ -45,8 +45,13 @@ #error Change SERIAL_LINE_CONF_BUFSIZE in contiki-conf.h. #endif +#ifndef IGNORE_CHAR #define IGNORE_CHAR(c) (c == 0x0d) +#endif + +#ifndef END #define END 0x0a +#endif static struct ringbuf rxbuf; static uint8_t rxbuf_data[BUFSIZE];