mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- lcd4l: fix count of records
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -286,6 +286,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;
|
||||||
@@ -604,13 +605,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)
|
||||||
|
@@ -128,6 +128,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;
|
||||||
|
Reference in New Issue
Block a user