Tweak detection of "No Rx data" in GUI.

Suppress attempts to decode partial buffer on program startup.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@992 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2008-07-24 16:34:59 +00:00
parent df5cbcf1f4
commit 9b1f100e61
2 changed files with 6 additions and 4 deletions

View File

@ -994,7 +994,7 @@ def update():
azdist()
g.nfreq=nfreq.get()
kxp=int(Audio.datcom.kxp)
if kxp-kxp0 < 50000 and \
if kxp-kxp0 >=0 and kxp-kxp0 < 50000 and \
((not Audio.gcom2.lauto) or (not Audio.gcom1.transmitting)):
msg5.configure(text='No Rx data',bg='red')
else:

View File

@ -21,9 +21,10 @@ subroutine recvpkt(iarg)
1 call setup_rsocket(multicast) !Open socket for multicast/unicast data
k=0
k0=0
kk=0
kxp=0
kb=1
kb=2
nsec0=-999
fcenter=144.125 !Default (startup) frequency)
multicast0=multicast
@ -43,6 +44,7 @@ subroutine recvpkt(iarg)
if(ns.lt.ns0) then
if(ntx.eq.0) kb=3-kb
k=(kb-1)*60*96000
k0=k
ndone1=0
ntx=0
lost_tot=0
@ -105,7 +107,7 @@ subroutine recvpkt(iarg)
! If we have not transmitted in this minute, see if it's time to start FFTs
if(ntx.eq.0) then
if(ns.ge.nt1 .and. ndone1.eq.0) then
if(ns.ge.nt1 .and. ndone1.eq.0 .and. (k-k0)/96000.ge.48) then
nutc=mutc
fcenter=center_freq
kbuf=kb
@ -115,7 +117,7 @@ subroutine recvpkt(iarg)
endif
! See if it's time to start second stage of processing
if(ns.ge.nt2) then
if(ndone1.eq.1 .and. ns.ge.nt2) then
kk=k
nlost=lost_tot ! Save stats for printout
endif