修改判断释放smartos初始任务4k资源
This commit is contained in:
parent
c977dd48e9
commit
a7628f4155
@ -159,7 +159,7 @@ osp_task_ext_inf g_osp_task_ext_tb[] =
|
||||
/* 心跳任务,定时更新心跳值 */
|
||||
#ifdef HEARTBEAT_ENABLE
|
||||
static uint32_t gu32OpsHeartbeatCnt = 0;
|
||||
static uint32_t gu8FreeInitStEnable = 1;
|
||||
static uint8_t gu8FreeInit4kEnable = 1;
|
||||
extern char *init_st_ptr;
|
||||
|
||||
void osp_heartbeat_task(void)
|
||||
@ -170,10 +170,13 @@ void osp_heartbeat_task(void)
|
||||
#endif
|
||||
heart_beat_write();
|
||||
|
||||
if(200 == gu32OpsHeartbeatCnt && 1 == gu8FreeInitStEnable)
|
||||
if(200 == gu32OpsHeartbeatCnt)
|
||||
{
|
||||
gu8FreeInitStEnable = 0;
|
||||
smart_reclaim_init_res();
|
||||
if(gu8FreeInit4kEnable)
|
||||
{
|
||||
gu8FreeInit4kEnable = 0;
|
||||
smart_reclaim_init_res();
|
||||
}
|
||||
}
|
||||
|
||||
return ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user