无法解锁后面不执行

This commit is contained in:
pxzleo 2017-04-09 19:53:14 +08:00
parent 3802af10ca
commit 0044fdc9b1

View File

@ -167,7 +167,7 @@ namespace Plane.FormationCreator.Formation
//解锁间隔一定要超过1s否则导致飞控以后无法解锁
if (i > 200)
break;
return; //无法解锁后面不用执行了
if (i % (1000 / 25) == 1000 / 25 - 1)
{
await copter.UnlockAsync(); // 每 1000 毫秒重试一次。