Commit 1205881f authored by 潘栩锋's avatar 潘栩锋 🚴

定点数据 GM_Fix,当闲置时, 通过 IsIgnoreDataWhenIdle 使能是否屏蔽数据推送

parent ea048a3f
......@@ -23,6 +23,10 @@ namespace FLY.Thick.Base.Server
public bool IsRunning { get; protected set; }
#endregion
/// <summary>
/// 闲置时(IsRunning==false) 忽略数据
/// </summary>
public bool IsIgnoreDataWhenIdle { get; set; } = true;
protected FlyADBase.FlyAD7 mFlyAD;
protected DynArea mDynArea;
protected AD2ThickHandler AD2Thick;
......@@ -47,7 +51,7 @@ namespace FLY.Thick.Base.Server
void flyad_TimeGridEvent(object sender, FlyADBase.TimeGridEventArgs e)
{
if (!IsRunning)
if (IsIgnoreDataWhenIdle && !IsRunning)
return;
DateTime dt = e.Time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment