revert back to previous api for 921 callbacks expected return

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@127 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale committed 2007-05-24 01:55:26 +00:00
1 parent 397eebfd09
commit e79c497e6e
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -504,7 +504,7 @@ int Q921Rx12(L2TRUNK trunk)
/* we increment before we "really" know its good so that if we send in the callback, we use the right nr */
trunk->vr++;
if(Q921Tx23Proc(trunk, smes, size-2) >= 0) /* -2 to clip away CRC */
if(Q921Tx23Proc(trunk, smes, size-2)) /* -2 to clip away CRC */
{
Q921SendRR(trunk, (mes[0]&0xfc)>>2, (mes[0]>>1)&0x01, mes[1]>>1, mes[3]&0x01);
}