Commit 735de845 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 当AD盒的systick 比电脑要慢5秒,调整到systick 为当前时间

parent 833f02d3
...@@ -590,7 +590,12 @@ namespace FlyADBase ...@@ -590,7 +590,12 @@ namespace FlyADBase
systick_1st = systick; systick_1st = systick;
dt_1st = dt; dt_1st = dt;
if (Math.Abs((DateTime.Now-dt).TotalSeconds) > 5000)//滞后5s,异常
{
//修正
dt = DateTime.Now;
dt_1st = dt;
}
return dt; return dt;
} }
......
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