summaryrefslogtreecommitdiff
path: root/bsp/simulator/drivers/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/simulator/drivers/board.c')
-rwxr-xr-xbsp/simulator/drivers/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/simulator/drivers/board.c b/bsp/simulator/drivers/board.c
index 39c48aa41b..5ac01ed43b 100755
--- a/bsp/simulator/drivers/board.c
+++ b/bsp/simulator/drivers/board.c
@@ -101,7 +101,7 @@ int rt_hw_board_init(void)
rt_thread_idle_sethook(rt_hw_win32_low_cpu);
#endif
-#if defined(RT_USING_CONSOLE)
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
/* init board */