修复都是true的led

1114
nodyang@aliyun.com 1 week ago
parent 34aabe8131
commit 258a84dee2

@ -51,7 +51,7 @@ namespace RfidWeb
private void Init() private void Init()
{ {
_timer = new TimerX(TimeState, null, 10, 1000); _timer = new TimerX(TimeState, null, 2000, 1000);
// 如果所有的日志在记录之前需要在控制台显示出来 // 如果所有的日志在记录之前需要在控制台显示出来
logNet.BeforeSaveToFile += (object sender, HslEventArgs e) => logNet.BeforeSaveToFile += (object sender, HslEventArgs e) =>
{ {
@ -128,8 +128,6 @@ namespace RfidWeb
updateLogService.AddOrUpdateLog(userDto, se, res.Content); updateLogService.AddOrUpdateLog(userDto, se, res.Content);
} }
} }
cache.Remove(CacheKeyManager.UpdateLog); cache.Remove(CacheKeyManager.UpdateLog);
} }
@ -150,13 +148,6 @@ namespace RfidWeb
private void btnMain_Click(object sender, EventArgs e)
{
panContent.Controls.Clear();
panContent.Controls.Add(new UserMain());
}
private void btnArgument_Click(object sender, EventArgs e) private void btnArgument_Click(object sender, EventArgs e)
{ {

@ -117,7 +117,7 @@ namespace RfidWeb.Frm
} }
else else
{ {
SetTrueLed(hsl0); SetFaileLed(hsl0);
} }
//No1 //No1
@ -138,7 +138,7 @@ namespace RfidWeb.Frm
} }
else else
{ {
SetTrueLed(hslA2, hslB2); SetFaileLed(hslA2, hslB2);
} }
//No3 //No3
if (plcCh.A0 || plcCh.B0 || plcCh.B1 || plcStop[10] || plcStop[11]) if (plcCh.A0 || plcCh.B0 || plcCh.B1 || plcStop[10] || plcStop[11])

Loading…
Cancel
Save