Commit f98769fe 几米阳光

AI模块分包修改

1 个父辈 0acddeec
......@@ -275,10 +275,12 @@ namespace OnlineStore.DeviceLibrary
if (rdata.Length < currStartIndex + lengthIndex)
{
LogUtil.error(clientipe.ToString() + "收到数据:" + str + "分包出错 [" + currStartIndex + "]");
break;
}
else
{
dataLength = rdata[currStartIndex + lengthIndex];
allLength = lengthIndex + 1 + dataLength ;
allLength = lengthIndex + 1 + dataLength;
byte[] thisData = new byte[allLength];
Array.Copy(rdata, currStartIndex, thisData, 0, allLength);
......@@ -293,6 +295,7 @@ namespace OnlineStore.DeviceLibrary
}
currStartIndex = currStartIndex + allLength;
}
}
catch (Exception ex)
{
LogUtil.error(clientipe.ToString() + "收到数据:" + str + "分包出错 [" + currStartIndex + "]:" + ex.ToString());
......
......@@ -311,7 +311,7 @@ namespace OnlineStore.DeviceLibrary
//else
//{
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove1);
LogUtil.info("回原点:反方向");
LogUtil.debug("回原点:反方向");
//}
Thread.Sleep(SleepMSendons);
OpenAndCloseSTB(portName, slvAddr);
......
......@@ -451,7 +451,7 @@ namespace OnlineStore.DeviceLibrary
{
if (IsHasCompress_Axis)
{
LogUtil.info("压紧轴绝对运动目标位置:"+targetPosition);
LogUtil.debug("压紧轴绝对运动目标位置:"+targetPosition);
ShuoKeControls.AbsMove(Config.CompressAxis_Slv, targetPosition);
StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, targetPosition, false));
Thread.Sleep(100);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!