提交 d3be5e4f 编写于 作者: B bernard 提交者: Gitee

!179 fix unused device frame error

Merge pull request !179 from shuobatian/gitee_master
...@@ -168,7 +168,7 @@ RT_WEAK void rt_hw_board_init() ...@@ -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
......
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
#include <rtthread.h> #include <rtthread.h>
#include <rthw.h> #include <rthw.h>
#ifdef RT_USING_DEVICE
#include <rtdevice.h> #include <rtdevice.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册