Commit 214723ec authored by claes's avatar claes

UserDetectTime added to EventFlags

parent 5e92d9ab
......@@ -1308,7 +1308,8 @@ dSup_exec (
if (o->DetectCheck) {
o->ActualValue = In;
timerIn(sp, (sTimer *)&o->TimerFlag);
time_GetTime(&o->DetectTime);
if ( !(o->EventFlags & pwr_mEventFlagsMask_UserDetectTime))
time_GetTime(&o->DetectTime);
o->DetectCheck = FALSE;
}
if (!o->TimerFlag) {
......
......@@ -147,6 +147,16 @@ SObject pwrb:Type
Attr Value = 256
EndBody
EndObject
!/**
! DetectTime is set by user when alarm condition is set.
!*/
Object UserDetectTime $Bit
Body SysBody
Attr PgmName = "UserDetectTime"
Attr Text = "UserDetectTime"
Attr Value = 512
EndBody
EndObject
EndObject
EndSObject
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment