lcd4l: fix count of records

Origin commit data
------------------
Branch: ni/coolstream
Commit: fcfb236a66
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-13 (Thu, 13 Jan 2022)

Origin message was:
------------------
- lcd4l: fix count of records

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-01-13 20:18:10 +01:00
parent 849cc2c51a
commit 55aad37fe5
2 changed files with 8 additions and 3 deletions

View File

@@ -283,6 +283,7 @@ void CLCD4l::Init()
m_Tuner = -1;
m_Volume = -1;
m_ModeRec = -1;
m_RecordCount = -1;
m_ModeTshift = -1;
m_ModeTimer = -1;
m_ModeEcm = -1;
@@ -600,13 +601,16 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
break;
}
std::string _ModeRec = (ModeRec ? "on" : "off");
_ModeRec += "\n" + to_string(CRecordManager::getInstance()->GetRecordCount());
int RecordCount = CRecordManager::getInstance()->GetRecordCount();
if (m_ModeRec != ModeRec)
std::string _ModeRec = (ModeRec ? "on" : "off");
_ModeRec += "\n" + to_string(RecordCount);
if ((m_ModeRec != ModeRec) || (m_RecordCount != RecordCount))
{
WriteFile(MODE_REC, _ModeRec);
m_ModeRec = ModeRec;
m_RecordCount = RecordCount;
}
if (m_ModeTshift != ModeTshift)