[zaptel-commits] kpfleming: branch 1.2 r1534 - /branches/1.2/wctdm.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Oct 25 16:54:41 MST 2006


Author: kpfleming
Date: Wed Oct 25 18:54:41 2006
New Revision: 1534

URL: http://svn.digium.com/view/zaptel?rev=1534&view=rev
Log:
do ProSLIC 3215 check properly

Modified:
    branches/1.2/wctdm.c

Modified: branches/1.2/wctdm.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctdm.c?rev=1534&r1=1533&r2=1534&view=diff
==============================================================================
--- branches/1.2/wctdm.c (original)
+++ branches/1.2/wctdm.c Wed Oct 25 18:54:41 2006
@@ -1184,10 +1184,10 @@
 		printk("ProSLIC 3210 version %d is too old\n", blah & 0xf);
 		return -1;
 	}
-	if ((blah & 0xf) == 2) {
+	if (wctdm_getreg(wc, card, 1) & 0x80)
 		/* ProSLIC 3215, not a 3210 */
 		wc->flags[card] |= FLAG_3215;
-	}
+
 	blah = wctdm_getreg(wc, card, 8);
 	if (blah != 0x2) {
 		printk("ProSLIC on module %d insane (1) %d should be 2\n", card, blah);



More information about the zaptel-commits mailing list