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);