mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05:00
FT8: Fix jt9 crash when nagain is invoked.
This commit is contained in:
parent
b26d29dd1e
commit
27bf7bb964
@ -35,8 +35,19 @@ subroutine get_spectrum_baseline(dd,nfa,nfb,sbase)
|
|||||||
savg=savg + s(1:NH1,j) !Average spectrum
|
savg=savg + s(1:NH1,j) !Average spectrum
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
if(nfa.lt.100) nfa=100
|
nwin=nfb-nfa
|
||||||
if(nfb.gt.4910) nfb=4910
|
if(nfa.lt.100) then
|
||||||
|
nfa=100
|
||||||
|
if(nwin.lt.100) then ! nagain
|
||||||
|
nfb=nfa+nwin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if(nfb.gt.4910) then
|
||||||
|
nfb=4910
|
||||||
|
if(nwin.lt.100) then
|
||||||
|
nfa=nfb-nwin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
call baseline(savg,nfa,nfb,sbase)
|
call baseline(savg,nfa,nfb,sbase)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user