mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-28 23:28:49 -05:00
In gen_ft8wave, make sure that wave() is not referenced unless icmplx=0.
This commit is contained in:
parent
3ad2a4c277
commit
992351f584
@ -45,7 +45,7 @@ subroutine gen_ft8wave(itone,nsym,nsps,bt,fsample,f0,cwave,wave,icmplx,nwave)
|
|||||||
! Calculate and insert the audio waveform
|
! Calculate and insert the audio waveform
|
||||||
phi=0.0
|
phi=0.0
|
||||||
dphi = dphi + twopi*f0*dt !Shift frequency up by f0
|
dphi = dphi + twopi*f0*dt !Shift frequency up by f0
|
||||||
wave=0.
|
if(icmplx .eq. 0) wave=0.
|
||||||
if(icmplx .ne. 0) cwave=0. !Avoid writing to memory we may not have access to
|
if(icmplx .ne. 0) cwave=0. !Avoid writing to memory we may not have access to
|
||||||
|
|
||||||
call timer('gen_loop',0)
|
call timer('gen_loop',0)
|
||||||
|
Loading…
Reference in New Issue
Block a user