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:
Moises Silva 2010-03-02 15:43:02 +00:00
parent 58274f0386
commit 46175f6f11
1 changed files with 8 additions and 0 deletions

View File

@ -901,6 +901,14 @@ static __inline__ zap_status_t process_event(zap_span_t *span, zap_event_t *even
zap_safe_free(event->data); 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: end: