mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 20:48:33 -04:00
FT8: Avoid a crash when a wav file is processed multiple times.
This commit is contained in:
parent
1bcad2eda5
commit
1bcbca4634
lib
@ -88,7 +88,7 @@ subroutine sync8(dd,nfa,nfb,syncmin,nfqso,maxcand,s,candidate, &
|
||||
red=0.
|
||||
red2=0.
|
||||
mlag=20
|
||||
mlag2=62
|
||||
mlag2=JZ
|
||||
do i=ia,ib
|
||||
ii=maxloc(sync2d(i,-mlag:mlag)) - 1 - mlag
|
||||
jpeak(i)=ii(1)
|
||||
|
@ -80,7 +80,9 @@ contains
|
||||
dt0=0.
|
||||
f0=0.
|
||||
endif
|
||||
if(nutc.ne.nutc0) then
|
||||
!Added 41==nzhsym to force a reset if the same wav file is processed twice or more in a row,
|
||||
!in which case nutc.eq.nutc0 and ndec(jseq,1) doesn't get reset
|
||||
if(nzhsym==41 .or. (nutc.ne.nutc0)) then
|
||||
! New UTC. Move previously saved 'a7' data from k=1 to k=0
|
||||
iz=ndec(jseq,1)
|
||||
dt0(1:iz,jseq,0) = dt0(1:iz,jseq,1)
|
||||
|
Loading…
Reference in New Issue
Block a user