set analog channel suspended when in alarm
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1048 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
58274f0386
commit
46175f6f11
|
@ -901,6 +901,14 @@ static __inline__ zap_status_t process_event(zap_span_t *span, zap_event_t *even
|
|||
zap_safe_free(event->data);
|
||||
}
|
||||
}
|
||||
case ZAP_OOB_ALARM_TRAP:
|
||||
{
|
||||
zap_set_flag_locked(event->channel, ZAP_CHANNEL_SUSPENDED);
|
||||
}
|
||||
case ZAP_OOB_ALARM_CLEAR:
|
||||
{
|
||||
zap_clear_flag_locked(event->channel, ZAP_CHANNEL_SUSPENDED);
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
Loading…
Reference in New Issue