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

View File

@@ -116,6 +116,7 @@ class CLCD4l
int m_Tuner; int m_Tuner;
int m_Volume; int m_Volume;
int m_ModeRec; int m_ModeRec;
int m_RecordCount;
int m_ModeTshift; int m_ModeTshift;
int m_ModeTimer; int m_ModeTimer;
int m_ModeEcm; int m_ModeEcm;