[Asterisk-cvs] zaptel pciradio.c,1.13,1.14

jim jim
Wed Aug 10 23:52:45 CDT 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv24459

Modified Files:
	pciradio.c 
Log Message:
Allowed for no rx response after transmit of serial data


Index: pciradio.c
===================================================================
RCS file: /usr/cvsroot/zaptel/pciradio.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- pciradio.c	11 Aug 2005 03:19:46 -0000	1.13
+++ pciradio.c	11 Aug 2005 03:56:07 -0000	1.14
@@ -1254,10 +1254,10 @@
 			rad->srxtimer = 0;
 			memset(stack.p.buf,0,SERIAL_BUFLEN);
 			stack.p.index = 0;
-			for(;;)
+			if (stack.p.data) for(;;)
 			{			
 				rad->rxbuf[rad->rxindex] = 0;
-				if (((!stack.p.data) || (rad->rxindex < stack.p.data)) &&
+				if ((rad->rxindex < stack.p.data) &&
 				  (rad->srxtimer < SRX_TIMEOUT) &&
 				    ((rad->remmode[chan->chanpos - 1] == ZT_RADPAR_REM_SERIAL) ||
 					(!strchr(rad->rxbuf,'\r'))))




More information about the svn-commits mailing list