Commit 474113dd 刘韬

稳定版

1 个父辈 1eaf2994
...@@ -93,6 +93,7 @@ namespace OnlineStore.ACSingleStore ...@@ -93,6 +93,7 @@ namespace OnlineStore.ACSingleStore
} }
if (!isShow) if (!isShow)
{ {
Environment.CurrentDirectory = Application.StartupPath;
log4net.GlobalContext.Properties["fname"] = ConfigAppSettings.GetValue(Setting_Init.Store_CID); log4net.GlobalContext.Properties["fname"] = ConfigAppSettings.GetValue(Setting_Init.Store_CID);
log4net.Config.XmlConfigurator.Configure(); log4net.Config.XmlConfigurator.Configure();
Application.EnableVisualStyles(); Application.EnableVisualStyles();
......
...@@ -86,7 +86,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -86,7 +86,7 @@ namespace OnlineStore.DeviceLibrary
while (true) { while (true) {
if (DoorRunMonitorEnable) if (DoorRunMonitorEnable)
{ {
Thread.Sleep(30); Thread.Sleep(5);
} }
else { else {
//检测到门在运行立刻开始监控 //检测到门在运行立刻开始监控
...@@ -94,7 +94,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -94,7 +94,7 @@ namespace OnlineStore.DeviceLibrary
DoorRunMonitorEnable = true; DoorRunMonitorEnable = true;
continue; continue;
} }
Thread.Sleep(300); Thread.Sleep(200);
continue; continue;
} }
if (IOManager.IOValue(IO_Type.Motor_Error).Equals(IO_VALUE.HIGH)) { if (IOManager.IOValue(IO_Type.Motor_Error).Equals(IO_VALUE.HIGH)) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!