mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-29 05:24:24 -04:00
Clean up compiler warnings.
Better definition of "red()" for waterfall plot. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2729 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+1
-15
@@ -87,13 +87,8 @@ void WideGraph::dataSink2(float s[], float red[], float df3, int ihsym,
|
||||
{
|
||||
static float splot[NSMAX];
|
||||
static float swide[2048];
|
||||
float smax;
|
||||
// double df;
|
||||
int nbpp = ui->widePlot->binsPerPixel();
|
||||
static int n=0;
|
||||
static int nkhz0=-999;
|
||||
|
||||
// df = 12000.0/m_nsps;
|
||||
|
||||
//Average spectra over specified number, m_waterfallAvg
|
||||
if (n==0) {
|
||||
@@ -110,20 +105,11 @@ void WideGraph::dataSink2(float s[], float red[], float df3, int ihsym,
|
||||
splot[i] /= n; //Normalize the average
|
||||
n=0;
|
||||
|
||||
int w=ui->widePlot->plotWidth();
|
||||
// int w=ui->widePlot->plotWidth();
|
||||
int i0=0; //###
|
||||
int i=i0;
|
||||
int jz=1000.0/df3;
|
||||
for (int j=0; j<jz; j++) {
|
||||
/*
|
||||
smax=0;
|
||||
for (int k=0; k<nbpp; k++) {
|
||||
if(splot[i]>smax) smax=splot[i];
|
||||
i++;
|
||||
}
|
||||
swide[j]=smax;
|
||||
*/
|
||||
|
||||
float sum=0;
|
||||
for (int k=0; k<nbpp; k++) {
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user