From fa765e67b063ac2d31ff10e4258cd07e3953fdf8 Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Fri, 22 Dec 2017 00:27:03 -0800 Subject: [PATCH] JN516x: fix SLIP configuration --- arch/platform/jn516x/jn516x-def.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/platform/jn516x/jn516x-def.h b/arch/platform/jn516x/jn516x-def.h index 357c255c0..4861d00b3 100644 --- a/arch/platform/jn516x/jn516x-def.h +++ b/arch/platform/jn516x/jn516x-def.h @@ -272,9 +272,14 @@ typedef uint32_t clock_time_t; /* Set this to zero only if we are using SLIP */ #ifndef SLIP_BRIDGE_CONF_NO_PUTCHAR -#define SLIP_BRIDGE_CONF_NO_PUTCHAR 1 +#if defined(UIP_FALLBACK_INTERFACE) || defined(CMD_CONF_OUTPUT) +#define SLIP_BRIDGE_CONF_NO_PUTCHAR 0 +#else +#define SLIP_BRIDGE_CONF_NO_PUTCHAR 1 +#endif #endif /* SLIP_BRIDGE_CONF_NO_PUTCHAR */ + /* Extension of LED definitions from leds.h for various JN516x dev boards JN516x Dongle: LEDS_RED Red LED on dongle