summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-09 18:44:39 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-09 18:44:39 +0000
commit95468285f35850b23c2f6586c7087ed20ac34fea (patch)
tree74bfd4525c51c279355bfebca3db47b1fc698be3 /wct4xxp.c
parentf5fd851fc7a8ab89a32840df789ece77d6f06b7a (diff)
Still okay to be a source if you have yellow alarm (duh!)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@356 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 3563880..911dbeb 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -675,7 +675,7 @@ static void __t4_set_timing_source_auto(struct t4 *wc)
for (x=0;x<4;x++) {
if (wc->syncs[x]) {
if ((wc->spans[wc->syncs[x] - 1].flags & ZT_FLAG_RUNNING) &&
- !(wc->spans[wc->syncs[x] - 1].alarms)) {
+ !(wc->spans[wc->syncs[x] - 1].alarms & ~(ZT_ALARM_YELLOW))) {
/* Valid timing sourc e*/
__t4_set_timing_source(wc, wc->syncs[x] - 1);
return;