summaryrefslogtreecommitdiff
path: root/lib/jt65_decode.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jt65_decode.f90')
-rw-r--r--lib/jt65_decode.f9019
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/jt65_decode.f90 b/lib/jt65_decode.f90
index 4e73ee7b..18a901ce 100644
--- a/lib/jt65_decode.f90
+++ b/lib/jt65_decode.f90
@@ -205,6 +205,8 @@ contains
if(bVHF) then
flip=ca(icand)%flip
nflip=int(flip)
+ else
+ nflip=1
endif
if(sync1.lt.float(minsync)) nflip=0
if(ipass.eq.1) ntry65a=ntry65a + 1
@@ -275,6 +277,8 @@ contains
! Display a decoded message obtained by averaging 2 or more transmissions
call this%callback(sync1,nsnr,dtx-1.0,nfreq,ndrift, &
nflip,width,avemsg,nftt,nqave,nsmo,nsum,minsync)
+ if (iand(ndepth,128).ne.0 .and. .not.nagain .and. &
+ abs(nfreq-nfqso).le.ntol) clear_avg65=.true. ! AutoClrAvg
prtavg=.true.
end if
@@ -370,6 +374,13 @@ contains
data first/.true./
save
+ nftt=0
+ avemsg=' '
+ deepave=' '
+ qave=0.0
+ deepbest=' '
+ nfttbest=0
+
if(first .or. clear_avg65) then
iutc=-1
nfsave=0
@@ -385,7 +396,10 @@ contains
do i=1,64
if(iutc(i).lt.0) exit
- if(nutc.eq.iutc(i) .and. abs(nfreq-nfsave(i)).le.ntol) go to 10
+ if(nutc.eq.iutc(i) .and. abs(nfreq-nfsave(i)).le.ntol) then
+ nsave=mod(nsave-2+MAXAVE,MAXAVE)+1
+ go to 10
+ endif
enddo
! Save data for message averaging
@@ -396,9 +410,6 @@ contains
nflipsave(nsave)=nflip
s1save(-255:256,1:126,nsave)=s1
s3save(1:64,1:63,nsave)=s3a
- avemsg=' '
- deepbest=' '
- nfttbest=0
10 syncsum=0.
dtsum=0.