summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 5792e3a..43190a0 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -481,13 +481,14 @@ static int t4_spanconfig(struct zt_span *span, struct zt_lineconfig *lc)
span->lineconfig = lc->lineconfig;
span->txlevel = lc->lbo;
span->rxlevel = 0;
+ span->syncsrc = wc->syncsrc;
if (lc->sync < 0)
lc->sync = 0;
if (lc->sync > 4)
lc->sync = 0;
/* remove this span number from the current sync sources, if there */
- for(i = 0; i < 3; i++) {
+ for(i = 0; i < 4; i++) {
if (wc->syncs[i] == span->spanno) {
wc->syncs[i] = 0;
wc->psyncs[i] = 0;