From b17cdd2abb984d7429aff9d6474ecc9e492e2eb8 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 20 Nov 2012 00:48:41 +0000 Subject: [PATCH] Get rid of multiple decodes of same signal. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2754 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/decoder.f90 | 4 ++-- mainwindow.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/decoder.f90 b/lib/decoder.f90 index 24d00d1e7..9c8401aac 100644 --- a/lib/decoder.f90 +++ b/lib/decoder.f90 @@ -106,7 +106,7 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c00) call decode9(i1SoftSymbols,limit,nlim,msg) call timer('decode9 ',1) - sync=ccfred(i) - 2.0 + sync=(ccfred(i)-1.0)/2.0 if(sync.lt.0.0) sync=0.0 nsync=sync if(nsync.gt.10) nsync=10 @@ -125,7 +125,7 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c00) fgood=f nsynced=1 ndecoded=1 - ccfred(max(ia,i):min(ib,i+8))=0. + ccfred(max(ia,i-3):min(ib,i+11))=0. endif endif ccfred(i)=0. diff --git a/mainwindow.cpp b/mainwindow.cpp index a4f116dcc..251d928c2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//--------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"