update for reading Re/F0/Q/DeltaT during music playback
[tas2557sw-android/tas2557-ftc.git] / tas2557_ftc.c
index b0686add9760abefb1ac011c0b4486be1125fc92..c66431eb21e300171e1a8a9e2b6a800adf0253d4 100755 (executable)
@@ -96,11 +96,14 @@ uint32_t tas2557_ftc(double t_cal, struct TFTCConfiguration *pFTCC)
                        gpFTCC->nTSpkCharDevA.nPPC3_DevNonlinPer, \r
                        gpFTCC->nTSpkCharDevA.nPPC3_RTV, \r
                        gpFTCC->nTSpkCharDevA.nPPC3_RTM, \r
-                       gpFTCC->nTSpkCharDevA.nPPC3_RTVA);\r
+                       gpFTCC->nTSpkCharDevA.nPPC3_RTVA,\r
+                       gpFTCC->nTSpkCharDevA.nPPC3_PIG);\r
                set_re(gpFTCC->nTSpkCharDevA.nPPC3_Re0, dev_a_re, gpFTCC->nTSpkCharDevA.nSpkReAlpha);\r
                set_temp_cal(dev_a_prm_pow, dev_a_prm_tlimit);\r
        }\r
 \r
+       tas2557_ftc_stop();\r
+\r
        sys_stop_wav(nPlaybackProcess);\r
 \r
        /* STEP 7: Save Re, and Cal Temp into a file */\r