Commit 0a2f5619 张东亮
2 个父辈 8250c14d fc65d421
......@@ -149,6 +149,7 @@ namespace OnlineStore.DeviceLibrary
WorkLog("复位前重置料串状态");
UpdateShelf();
}
preCodeList = new List<string>();
WarnMsg = "";
alarmType = AlarmType.None;
MoveInfo.NewMove(MoveType.Reset,new InOutParam());
......
......@@ -332,15 +332,14 @@ namespace OnlineStore.DeviceLibrary
Robot.IOMove(IO_Type.CameraLed, IO_VALUE.LOW);
//TODO 需要判断是否和上次的条码重复,重复的条码不可用
bool isCanUse = true;
//判断是否可用
foreach (string nC in LastCodeList)
{
foreach (string n in preCodeList)
{
if(CodeManager.HasRightCode(nC))
//if (nC.Length > 15 && nC.Equals(n))
//if(CodeManager.HasRightCode(nC))
if (nC.Length > 15 && nC.Equals(n))
{
LogUtil.error(Name + "扫码结果【" + nC + "】与上个条码【" + n + "】重复,扫码结果不可用");
isCanUse = false;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!