1.IoValve 定时器修改
This commit is contained in:
parent
880652f099
commit
163d2ecad0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue