From 90f5b7696ba8995593510f2c39a1dcc6632fc28a Mon Sep 17 00:00:00 2001 From: devsaurus Date: Thu, 6 Apr 2017 21:09:22 +0200 Subject: [PATCH] handle undefined CONFIG_CONSOLE_BIT_RATE_AUTO --- components/base_nodemcu/user_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/base_nodemcu/user_main.c b/components/base_nodemcu/user_main.c index b663e956..56476d3e 100644 --- a/components/base_nodemcu/user_main.c +++ b/components/base_nodemcu/user_main.c @@ -157,7 +157,12 @@ void app_main (void) cfg.data_bits = CONSOLE_NUM_BITS_8; cfg.parity = CONSOLE_PARITY_NONE; cfg.stop_bits = CONSOLE_STOP_BITS_1; - cfg.auto_baud = CONFIG_CONSOLE_BIT_RATE_AUTO; + cfg.auto_baud = +#ifdef CONFIG_CONSOLE_BIT_RATE_AUTO + true; +#else + false; +#endif console_init (&cfg, input_task);