handle undefined CONFIG_CONSOLE_BIT_RATE_AUTO

This commit is contained in:
devsaurus 2017-04-06 21:09:22 +02:00
parent 3694ffa957
commit 90f5b7696b
1 changed files with 6 additions and 1 deletions

View File

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