mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-09 09:24:59 -04:00
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:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user