提交 46175f6f authored 作者: Moises Silva's avatar Moises Silva

set analog channel suspended when in alarm

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1048 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 58274f03
......@@ -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:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论