1.IoValve 定时器修改

This commit is contained in:
HCL 2023-12-22 18:18:58 +08:00
parent 880652f099
commit 163d2ecad0
1 changed files with 5 additions and 1 deletions

View File

@ -347,6 +347,8 @@ namespace Aitex.Core.RT.Device.Devices
return true;
}
_timer.Stop();
if (_doOpen != null)
{
if (!_doOpen.Check(bValue, out reason))
@ -402,7 +404,9 @@ namespace Aitex.Core.RT.Device.Devices
SetPoint = isOn;
_operation = isOn;
_timer.Start(2000); //2 seconds to monitor
_timer.Restart(2000); //2 seconds to monitor
return true;