Reset k=0 if sub-mode changes.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2650 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-10-05 17:41:04 +00:00
parent 9135fb585c
commit a4d96a79fa
3 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -121,6 +121,7 @@ void SoundInThread::run() //SoundInThread::run()
int ntr;
int nBusy=0;
int nstep0=0;
int nsps0=0;
//---------------------------------------------- Soundcard input loop
while (!qe) {
@@ -131,8 +132,9 @@ void SoundInThread::run() //SoundInThread::run()
ntr = nsec % m_TRperiod;
// Reset buffer pointer and symbol number at start of minute
if(ntr < ntr0 or !m_monitoring) {
if(ntr < ntr0 or !m_monitoring or m_nsps!=nsps0) {
nstep0=0;
nsps0=m_nsps;
udata.bzero=true;
}
k=udata.kin;