mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user