summaryrefslogtreecommitdiff
path: root/bsp/rx/drivers/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/rx/drivers/board.c')
-rw-r--r--bsp/rx/drivers/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/rx/drivers/board.c b/bsp/rx/drivers/board.c
index aa80014066..cb103c33ca 100644
--- a/bsp/rx/drivers/board.c
+++ b/bsp/rx/drivers/board.c
@@ -99,7 +99,7 @@ void rt_hw_board_init()
rt_hw_system_freq_init();
rt_hw_systick_init();
rt_hw_uart_init();
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}