From 38b1f4df200b4ecce2e7ed9f355232324589a0aa Mon Sep 17 00:00:00 2001
From: Joe Taylor <k1jt@arrl.org>
Date: Wed, 31 Oct 2012 19:21:46 +0000
Subject: [PATCH] Oops!  Fix def'n of contingent xmed in sync9.f90.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2710 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
---
 lib/decoder.f90 | 1 +
 lib/sync9.f90   | 2 +-
 mainwindow.cpp  | 2 +-
 wsjtx.iss       | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/decoder.f90 b/lib/decoder.f90
index 293fcaea0..54114a6a9 100644
--- a/lib/decoder.f90
+++ b/lib/decoder.f90
@@ -76,6 +76,7 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c0)
         snr=10.0*log10(ccfred(i)) - 10.0*log10(2500.0/df3) + 2.0
         sync=ccfred(i) - 2.0
         if(sync.lt.0.0) sync=0.0
+        print*,f,ccfred(i),sync,snr,msg
         nsync=sync
         if(nsync.gt.10) nsync=10
         nsnr=nint(snr)
diff --git a/lib/sync9.f90 b/lib/sync9.f90
index f5c855c03..ee70c950c 100644
--- a/lib/sync9.f90
+++ b/lib/sync9.f90
@@ -45,7 +45,7 @@ subroutine sync9(ss,tstep,df3,ntol,nfqso,ccfred,ia,ib,ipkbest)
   enddo
 
   call pctile(ccfred(ia),ib-ia+1,50,xmed)
-  if(xmed.le.1.0) xmed=1.0
+  if(xmed.le.0.0) xmed=1.0
   ccfred=ccfred/xmed
 
   return
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 614b2fc44..0171d5ba8 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -1,4 +1,4 @@
-//--------------------------------------------------------------- MainWindow
+//-------------------------------------------------------------- MainWindow
 #include "mainwindow.h"
 #include "ui_mainwindow.h"
 #include "devsetup.h"
diff --git a/wsjtx.iss b/wsjtx.iss
index a27523827..fcf52a5b1 100644
--- a/wsjtx.iss
+++ b/wsjtx.iss
@@ -1,6 +1,6 @@
 [Setup]
 AppName=wsjtx
-AppVerName=wsjtx Version 0.2 r2708
+AppVerName=wsjtx Version 0.2 r2709
 AppCopyright=Copyright (C) 2001-2012 by Joe Taylor, K1JT
 DefaultDirName=c:\wsjtx
 DefaultGroupName=wsjtx