Make chan_usbradio compile under dev mode
authorTerry Wilson <twilson@digium.com>
Fri, 2 Mar 2012 22:36:28 +0000 (22:36 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 2 Mar 2012 22:36:28 +0000 (22:36 +0000)
x=++x and x=x=1? Really?
........

Merged revisions 357986 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 357987 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357999 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/xpmr/xpmr.c

index b94b0fa..0fc1fbe 100755 (executable)
@@ -1555,7 +1555,7 @@ i16 ctcss_detect(t_pmr_chan *pChan)
                        }
                        #endif
                        indexWas=indexNow;
-                       ptdet->zIndex=(++ptdet->zIndex)%4;
+                       ptdet->zIndex=(ptdet->zIndex + 1) % 4;
                }
                ptdet->counter-=(points2do*CTCSS_SCOUNT_MUL);
 
@@ -2019,7 +2019,7 @@ t_pmr_chan        *createPmrChannel(t_pmr_chan *tChan, i16 numSamples)
        pSps->sigProc=pmr_rx_frontend;
        pSps->enabled=1;
        pSps->decimator=pSps->decimate=6;
-       pSps->interpolate=pSps->interpolate=1;
+       pSps->interpolate=1;
        pSps->nSamples=pChan->nSamplesRx;
        pSps->ncoef=taps_fir_bpf_noise_1;
        pSps->size_coef=2;