kopia lustrzana https://github.com/jamescoxon/dl-fldigi
LOGGER EXPORT
* Corrected struct position of log field 'QSL_VIA' - caused field mismatch in logger exportpull/1/head
rodzic
d5e257d377
commit
d344fac9df
|
@ -24,6 +24,8 @@
|
|||
// removed unused fields to reduce size of each record and speed up
|
||||
// record processing
|
||||
|
||||
// field position should correspond with fields[] in adif_io.cxx
|
||||
|
||||
enum ADIF_FIELD_POS {
|
||||
FREQ = 0,
|
||||
CALL,
|
||||
|
@ -47,6 +49,7 @@ CNTY,
|
|||
COUNTRY,
|
||||
CQZ,
|
||||
DXCC,
|
||||
QSL_VIA,
|
||||
IOTA,
|
||||
ITUZ,
|
||||
CONT,
|
||||
|
@ -54,9 +57,8 @@ SRX,
|
|||
STX,
|
||||
XCHG1,
|
||||
MYXCHG,
|
||||
TX_PWR,
|
||||
TX_PWR, // do not add fields below this line; EXPORT must be last field in struc
|
||||
EXPORT, // flag used internally in fldigi's logbook
|
||||
QSL_VIA,
|
||||
NUMFIELDS };
|
||||
|
||||
// ADIF multiline string is a sequence of Characters and line-breaks,
|
||||
|
|
|
@ -61,7 +61,7 @@ static string notes;
|
|||
|
||||
//=============================================================================
|
||||
|
||||
#if defined(__WOE32__) || defined(__APPLE__)
|
||||
//#if defined(__WOE32__) || defined(__APPLE__)
|
||||
|
||||
static string adif;
|
||||
|
||||
|
@ -89,7 +89,7 @@ void putadif(int num, const char *s)
|
|||
LOG_PERROR("snprintf");
|
||||
return;
|
||||
}
|
||||
adif.append(tempstr).append(s);
|
||||
adif.append(tempstr).append(s).append("\n");
|
||||
}
|
||||
|
||||
void submit_ADIF(cQsoRec &rec)
|
||||
|
@ -131,7 +131,7 @@ void submit_ADIF(cQsoRec &rec)
|
|||
writeADIF();
|
||||
}
|
||||
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// the following IPC message is compatible with xlog remote data spec.
|
||||
|
@ -209,6 +209,7 @@ void submit_record(cQsoRec &rec)
|
|||
#else
|
||||
submit_ADIF(rec);
|
||||
#endif
|
||||
submit_ADIF(rec);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
|
Ładowanie…
Reference in New Issue