🐛 fix(fanuc): 修复 J519 队列等待与日志注入

* 为 FANUC 命令、状态和 J519 客户端注入独立日志记录器
* 补充不可接收命令状态下队列完成等待的回归测试
* 调整 J519 命令流结束后的状态处理语义
This commit is contained in:
2026-06-30 16:05:23 +08:00
parent 9a01ce851d
commit e0162b72b3
4 changed files with 101 additions and 21 deletions

View File

@@ -609,8 +609,8 @@ public sealed class FanucJ519Client : IDisposable
if (_endCommandStreamAfterQueueDrained && command.LastData == 1)
{
// LastData 是命令流的正常结束语义;结束后保留状态接收,但不继续回发保姿包。
_monitorOnlyAfterLastData = true;
_motionStarted = false;
// _monitorOnlyAfterLastData = true;
// _motionStarted = false;
CompleteCommandQueueLocked();
}
else if (willDrainQueue && _commandQueue is { Count: 0 })