修复系统日志不生效的问题
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#include "sertrf.h"
|
#include "sertrf.h"
|
||||||
|
|
||||||
|
//设置日志打印类型
|
||||||
|
#define CONFIG_SYS_LOG_LEVEL SYS_LOG_LEVEL_INF
|
||||||
|
#define SYS_LOG_DOMAIN "Seryrf"
|
||||||
|
|
||||||
sertrf_t sertrf;
|
sertrf_t sertrf;
|
||||||
|
|
||||||
@@ -11,6 +14,8 @@ void sertrf_init(void)
|
|||||||
{
|
{
|
||||||
SYS_LOG_WRN("device init error");
|
SYS_LOG_WRN("device init error");
|
||||||
}
|
}
|
||||||
|
// 打开SYS_LOG打印
|
||||||
|
app_cfg_set_sys_log(true);
|
||||||
// 协议初始化
|
// 协议初始化
|
||||||
Protocol_init(PORT_LINUX_SBDATA, sertrf.device.embedded_device);
|
Protocol_init(PORT_LINUX_SBDATA, sertrf.device.embedded_device);
|
||||||
//RGB灯
|
//RGB灯
|
||||||
@@ -30,6 +35,8 @@ void sertrf_init(void)
|
|||||||
sertrf.fc_address = parse_hex_or_dec(FC_ADDRESS);
|
sertrf.fc_address = parse_hex_or_dec(FC_ADDRESS);
|
||||||
//线程启动
|
//线程启动
|
||||||
sertrf_start();
|
sertrf_start();
|
||||||
|
|
||||||
|
SYS_LOG_INF("sertrf init ok");
|
||||||
}
|
}
|
||||||
void sertrf_start(void)
|
void sertrf_start(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user