Move files all_ft4.txt and clockit.out to the data_dir directory.

This commit is contained in:
Joe Taylor
2019-02-01 11:56:08 -05:00
parent 98d665c678
commit 22209030e2
4 changed files with 24 additions and 14 deletions
+7 -2
View File
@@ -165,7 +165,8 @@ extern "C" {
void ft4_decode_(char* cdatetime, float* tbuf, int* nfa, int* nfb, int* nfqso,
short int id[], int* ndecodes, char* mycall6, char* hiscall6,
int* nrx, char* line, int len1, int len2, int len3, int len4);
int* nrx, char* line, char* ddir, int len1, int len2, int len3,
int len4, int len5);
void get_ft4msg_(int* idecode, int* nrx, char* line, int len);
@@ -8658,8 +8659,12 @@ void MainWindow::ft4Data(int k)
int nrx=-1;
int nfa=m_wideGraph->nStartFreq();
int nfb=m_wideGraph->Fmax();
QString dataDir;
dataDir = m_config.writeable_data_dir ().absolutePath ();
char ddir[512];
strncpy(ddir,dataDir.toLatin1(), sizeof (ddir) - 1);
ft4_decode_(cdatetime,&tbuf,&nfa,&nfb,&nfqso,id,&ndecodes,mycall6,hiscall6,
&nrx,&line[0],17,6,6,61);
&nrx,&line[0],&ddir[0],17,6,6,61,512);
line[60]=0;
// if(ndecodes>0) {
for (int idecode=1; idecode<=ndecodes; idecode++) {