From 849cc2c51a177b43d32143bb9c2688be388700ea Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 11 Jan 2022 23:39:59 +0100 Subject: [PATCH] lcd4l: add count of records to mode_rec file Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/8455855aceb1413f0669d63c45f623e81c19150e Author: vanhofen 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 --- src/driver/lcd4l.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index d073ccad0..8409b6938 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -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; }