mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 03:27:45 +08:00
daemon init failed
This commit is contained in:
@@ -31,10 +31,10 @@ void XidiPowerMeterDecode(FDCANInstance *_instance)
|
||||
XidiPowerMeter_Msg_s *measure = &power_meter_instance->powermeter_msg;
|
||||
|
||||
// 重载守护进程
|
||||
// if (power_meter_instance->daemon != NULL)
|
||||
// {
|
||||
// DaemonReload(power_meter_instance->daemon);
|
||||
// }
|
||||
if (power_meter_instance->daemon != NULL)
|
||||
{
|
||||
DaemonReload(power_meter_instance->daemon);
|
||||
}
|
||||
|
||||
// 计算时间间隔
|
||||
measure->dt = DWT_GetDeltaT(&power_meter_instance->feed_cnt);
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include "daemon.h"
|
||||
#include "bsp_dwt.h"
|
||||
#include "stdlib.h"
|
||||
#include "cmsis_os2.h"
|
||||
#include "memory.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
/* 用于保存所有的daemon instance */
|
||||
static Daemon_Instance *daemon_instances[DAEMON_MAX_NUM];
|
||||
|
||||
Reference in New Issue
Block a user