lcd4l: add count of records to mode_rec file

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8455855ace
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-11 (Tue, 11 Jan 2022)

Origin message was:
------------------
- lcd4l: add count of records to mode_rec file

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-01-11 23:39:59 +01:00
parent 237f52bec7
commit 849cc2c51a

View File

@@ -600,9 +600,12 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
break;
}
std::string _ModeRec = (ModeRec ? "on" : "off");
_ModeRec += "\n" + to_string(CRecordManager::getInstance()->GetRecordCount());
if (m_ModeRec != ModeRec)
{
WriteFile(MODE_REC, ModeRec ? "on" : "off");
WriteFile(MODE_REC, _ModeRec);
m_ModeRec = ModeRec;
}