[zaptel-commits] mattf: branch 1.2 r2166 - /branches/1.2/wctdm24xxp.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Fri Feb 16 15:14:49 MST 2007


Author: mattf
Date: Fri Feb 16 16:14:48 2007
New Revision: 2166

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2166
Log:
Fix detection of second single port modules so it actually works now.

Modified:
    branches/1.2/wctdm24xxp.c

Modified: branches/1.2/wctdm24xxp.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctdm24xxp.c?view=diff&rev=2166&r1=2165&r2=2166
==============================================================================
--- branches/1.2/wctdm24xxp.c (original)
+++ branches/1.2/wctdm24xxp.c Fri Feb 16 16:14:48 2007
@@ -633,11 +633,12 @@
 
 	for (x=0;x<ZT_CHUNKSIZE;x++) {
 		/* Send a sample, as a 32-bit word */
-		for (y=0;y < wc->type;y++) {
+		for (y=0;y < wc->cards;y++) {
 			if (!x)
 				cmd_checkisr(wc, y);
 
-			writechunk[y] = wc->chans[y].writechunk[x];
+			if (y < wc->type)
+				writechunk[y] = wc->chans[y].writechunk[x];
 			cmd_dequeue(wc, writechunk, y, x);
 		}
 #ifdef VPM_SUPPORT
@@ -887,8 +888,9 @@
 				cmd_retransmit(wc);
 			}
 		}
-		for (y=0;y < wc->type;y++) {
-			wc->chans[y].readchunk[x] = readchunk[y];
+		for (y=0;y < wc->cards;y++) {
+			if (y < wc->type)
+				wc->chans[y].readchunk[x] = readchunk[y];
 			cmd_decifer(wc, readchunk, y);
 		}
 #ifdef VPM_SUPPORT



More information about the zaptel-commits mailing list