|
@@ -168,7 +168,7 @@ RT_WEAK void rt_hw_board_init()
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* Set the shell console output device */
|
|
/* Set the shell console output device */
|
|
-#ifdef RT_USING_CONSOLE
|
|
|
|
|
|
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
|
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
|
#endif
|
|
#endif
|
|
|
|
|