领胜LDS 键盘AOI检测项目
patrick.xu
2021-02-20 78289c64a16dd02cc9fec595bf758a9e30a30926
src/Bro.Device.Gocator/GocatorDriver.cs
@@ -269,6 +269,8 @@
            GoDataSet dataSet = null;
            if (IIConfig.IsAsyncMode)
            {
                if (opConfig.IsSnapshotAction)
                {
                if (!IIConfig.IsHardwareTrigger)
                {
                    _snapFlag = true;
@@ -279,6 +281,11 @@
                    }
                    dataSet = _currentData;
                    }
                }
                else
                {
                    imgSet = null;
                }
            }
            else
@@ -342,12 +349,12 @@
                            Thread.Sleep(100);
                        }
                    } while (true);
                    sensor.Flush();
                    LogAsync(DateTime.Now, $"传感器关闭成功", "");
                }
            }
            sensor.Flush();
            if (dataSet != null)
            {
                HandleGoData(dataSet, imgSet);