Fixed selection of correct data slice when doing mouse-picked JT6M

decodes from a recorded file.  (Still need to test for decoding from
real-time data.)


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@223 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2006-08-02 02:05:58 +00:00
parent 4f196eb750
commit e669a96f27

View File

@ -75,8 +75,16 @@ subroutine decode2
if(mousebutton.eq.0) istart=1
if(mousebutton.gt.0) then
jzz=lenpick
if(mode(1:4).eq.'JT6M') jzz=4*11025
istart=istart + 3300 - jzz/2
! This is a major kludge:
if(mode(1:4).eq.'JT6M') then
jzz=4*11025
if(mousebutton.eq.3) jzz=10*11025
istart=istart+11025
else
istart=istart + 3300 - jzz/2
endif
if(istart.lt.2) istart=2
if(istart+jzz.gt.jzc) istart=jzc-jzz
endif