From 4f7255aafa78d7019036b27c042c87cec05f5f81 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 29 Sep 2011 15:45:33 +0000 Subject: [PATCH] Decode command ignored (with yellow warning) after t=45s when monitoring. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@2451 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- map65.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/map65.py b/map65.py index 27d5ff3da..33d6ddc56 100644 --- a/map65.py +++ b/map65.py @@ -95,6 +95,7 @@ nosh441=IntVar() noshjt65=IntVar() setseq=IntVar() tx6alt="" +txminute=0 txsnrdb=99. TxFirst=IntVar() worked={} @@ -348,11 +349,16 @@ def textkey(event=NONE): #------------------------------------------------------ decode def decode(event=NONE): if Audio.gcom2.ndecoding==0: #If already busy, ignore request - Audio.gcom2.nagain=1 - n=1 - Audio.gcom2.mousebutton=0 - if Audio.gcom2.ndecoding0==4: n=4 - Audio.gcom2.ndecoding=n #Standard decode, full file (d2a) + if isec0>=45 and txminute==0 and Audio.gcom2.monitoring==1 and \ + Audio.datcom.kkdone!=-99 and Audio.gcom2.ndiskdat!=1: + bc='yellow' + bdecode.configure(bg=bc,activebackground=bc,state=DISABLED) + else: + Audio.gcom2.nagain=1 + n=1 + Audio.gcom2.mousebutton=0 + if Audio.gcom2.ndecoding0==4: n=4 + Audio.gcom2.ndecoding=n #Standard decode, full file (d2a) #------------------------------------------------------ decode_include def decode_include(event=NONE): @@ -982,7 +988,7 @@ def GenAltMsgs(event=NONE): def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nopen,kxp0, \ im,pim,cmap0,isync,isync_save,idsec,first,itol,txsnrdb,tx6alt,\ - bm_geom,bm2_geom,hisgrid0,fqso0,isec00,worked + bm_geom,bm2_geom,hisgrid0,fqso0,isec00,worked,txminute utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5]