Commit 53387cb3 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 AD盒.B2 SetOutPorts 不使用BuildMultiTrans。 之前提示多线程操作异常。

parent 2908173d
......@@ -896,14 +896,9 @@ namespace FlyADBase
/// <param name="enable"></param>
public void SetOutput(UInt16 mask, UInt16 enable)
{
#if ENABLE_MULTI_TRANS
core.BuildMultiTrans(() =>{
#endif
core.SetOutPorts(mask, enable, null, null);
core.SetOutPorts(mask, enable, (asyncContext, retData) => {
GetOut();
#if ENABLE_MULTI_TRANS
});
#endif
}, null);
}
#region 速度参数
......
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