Commit 9c47c981 张东亮
2 个父辈 8fe347ad b0b90e0d
......@@ -136,9 +136,10 @@ namespace OnlineStore.DeviceLibrary
{
//取新的Io状态
IO_VALUE fuweiValue = IOValue(IO_Type.Reset_BTN);
if (DILastValueMap.ContainsKey(IO_Type.Reset_BTN))
{
IO_VALUE lastFuwei = DILastValueMap[IO_Type.Reset_BTN];
bool isAutoStart = ConfigAppSettings.GetIntValue(Setting_Init.App_AutoRun) == 1;
//收到复位信号后启动
if (isAutoStart && fuweiValue.Equals(IO_VALUE.HIGH) && lastFuwei.Equals(IO_VALUE.LOW))
{
......@@ -150,6 +151,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error("启动失败,等待下次启动");
}
}
}
addLastDI(IO_Type.Reset_BTN, fuweiValue);
return;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!