[zaptel-commits] sruffell: branch kpfleming/battery_alarms r3924 - in /team/kpfleming/battery_...

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Mar 4 09:32:23 CST 2008


Author: sruffell
Date: Tue Mar  4 09:32:22 2008
New Revision: 3924

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3924
Log:
Minor change to allow this branch to detect incomming rings on FXO lines.

Modified:
    team/kpfleming/battery_alarms/kernel/wctdm.c
    team/kpfleming/battery_alarms/kernel/wctdm24xxp/base.c

Modified: team/kpfleming/battery_alarms/kernel/wctdm.c
URL: http://svn.digium.com/view/zaptel/team/kpfleming/battery_alarms/kernel/wctdm.c?view=diff&rev=3924&r1=3923&r2=3924
==============================================================================
--- team/kpfleming/battery_alarms/kernel/wctdm.c (original)
+++ team/kpfleming/battery_alarms/kernel/wctdm.c Tue Mar  4 09:32:22 2008
@@ -2573,13 +2573,13 @@
 	   them by specifying them as module parameters, then get the values
 	   from the selected operating mode
 	*/
-	if (battdebounce != 0) {
+	if (battdebounce == 0) {
 		battdebounce = fxo_modes[_opermode].battdebounce;
 	}
-	if (battalarm != 0) {
+	if (battalarm == 0) {
 		battalarm = fxo_modes[_opermode].battalarm;
 	}
-	if (battthresh != 0) {
+	if (battthresh == 0) {
 		battthresh = fxo_modes[_opermode].battthresh;
 	}
 

Modified: team/kpfleming/battery_alarms/kernel/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/kpfleming/battery_alarms/kernel/wctdm24xxp/base.c?view=diff&rev=3924&r1=3923&r2=3924
==============================================================================
--- team/kpfleming/battery_alarms/kernel/wctdm24xxp/base.c (original)
+++ team/kpfleming/battery_alarms/kernel/wctdm24xxp/base.c Tue Mar  4 09:32:22 2008
@@ -4455,13 +4455,13 @@
 	   them by specifying them as module parameters, then get the values
 	   from the selected operating mode
 	*/
-	if (battdebounce != 0) {
+	if (battdebounce == 0) {
 		battdebounce = fxo_modes[_opermode].battdebounce;
 	}
-	if (battalarm != 0) {
+	if (battalarm == 0) {
 		battalarm = fxo_modes[_opermode].battalarm;
 	}
-	if (battthresh != 0) {
+	if (battthresh == 0) {
 		battthresh = fxo_modes[_opermode].battthresh;
 	}
 




More information about the zaptel-commits mailing list