Change debug capture Af code to use Af sample count (true indication of samples in...
authorFrank Livingston <frank-livingston@ti.com>
Fri, 21 Jul 2017 15:15:23 +0000 (10:15 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Fri, 21 Jul 2017 15:15:23 +0000 (10:15 -0500)
pasdk/common/dbgCapAf.c

index b420283aa0845f1211d4f28940102e8de628c0a1..1675e568b57af5361362d0845e68097da97c0f3b 100644 (file)
@@ -71,7 +71,7 @@ Int capAfWrite(
         return CAP_AF_INV_CHNUM;
     }
     
-    nSamp = pAf->data.nSamples;
+    nSamp = pAf->sampleCount; //pAf->data.nSamples;
     pSamp = pAf->data.sample[chNum];
 
     if ((CAP_AF_MAX_NUM_SAMP - gCapAfBufIdx) < nSamp)