修改了freertos的支持include,增加了daemon的上线等待时间,增加pid参数整定指南

This commit is contained in:
NeoZng
2023-06-23 15:56:20 +08:00
parent 4a45331d31
commit b4d4228ccc
14 changed files with 17 additions and 20 deletions

View File

@@ -13,8 +13,9 @@ DaemonInstance *DaemonRegister(Daemon_Init_Config_s *config)
memset(instance, 0, sizeof(DaemonInstance));
instance->owner_id = config->owner_id;
instance->reload_count = config->reload_count == 0 ? 100 : config->reload_count;
instance->reload_count = config->reload_count == 0 ? 100 : config->reload_count; // 默认值为100
instance->callback = config->callback;
instance->temp_count = config->init_count == 0 ? 100 : config->init_count; // 默认值为100,初始计数
daemon_instances[idx++] = instance;
return instance;