mirror of
https://git.code.sf.net/p/fldigi/flrig
synced 2026-08-13 17:28:24 -04:00
mat file aging
* add aging for freq-mode list files (.mat)
This commit is contained in:
parent
be7477906e
commit
aaaf2252b4
2 changed files with 7 additions and 17 deletions
|
|
@ -185,6 +185,7 @@ extern void about();
|
|||
|
||||
extern void setNotch();
|
||||
extern void visit_URL(void* arg);
|
||||
extern void rotate_log(std::string);
|
||||
|
||||
extern void cbAttenuator();
|
||||
extern void cbPreamp();
|
||||
|
|
|
|||
|
|
@ -1799,19 +1799,7 @@ void buildlist() {
|
|||
readTagFile();
|
||||
return;
|
||||
}
|
||||
// else only read original file to make new MAT file
|
||||
orgFN = RigHomeDir;
|
||||
orgFN.append(selrig->name_);
|
||||
orgFN.append(".arv");
|
||||
fh = fopen(orgFN.c_str(), "r");
|
||||
if (fh != NULL) {
|
||||
fclose (fh);
|
||||
tmpFN = defFileName;
|
||||
defFileName = orgFN;
|
||||
readFile();
|
||||
defFileName = tmpFN;
|
||||
return;
|
||||
}
|
||||
// else clear the list
|
||||
clearList();
|
||||
}
|
||||
|
||||
|
|
@ -2916,10 +2904,11 @@ void updateSmeter(void *d) // 0 to 100;
|
|||
void saveFreqList()
|
||||
{
|
||||
string atag;
|
||||
if (!numinlist) {
|
||||
remove(defFileName.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
if (!numinlist) return;
|
||||
|
||||
rotate_log(defFileName);
|
||||
|
||||
ofstream oList(defFileName.c_str());
|
||||
if (!oList) {
|
||||
fl_message ("Could not write to %s", defFileName.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue