Fix scaling of waveform in wspr_wav when SNR > 90dB.

This commit is contained in:
k9an 2022-07-25 09:14:53 -05:00
parent 45532ed55c
commit 6396980de3

View File

@ -40,7 +40,7 @@ subroutine wspr_wav(baud,xdt,h,f0,itone,snrdb,iwave)
if(maxval(abs(dat)).gt.32767.0) print*,"Warning - data will be clipped."
else
datpk=maxval(abs(dat))
fac=32767.9/datpk
fac=32767.0/datpk
dat=fac*dat
endif
iwave=nint(dat)