summaryrefslogtreecommitdiff
path: root/lib/jt65_decode.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
commit69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch)
treeebc98370a697a9bbd6b973a14fa5113c475c6db7 /lib/jt65_decode.f90
parent3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff)
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg' with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
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.