From 46175f6f1141ccfbb3ffcf55485913be9947a4c0 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Tue, 2 Mar 2010 15:43:02 +0000 Subject: [PATCH] set analog channel suspended when in alarm git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1048 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c b/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c index 595f0ecebc..943badb1dd 100644 --- a/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c +++ b/libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c @@ -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: