nightly update 20200808

This commit is contained in:
jomjol
2020-08-08 18:26:50 +02:00
parent c9119deaea
commit 13b5d93190
9 changed files with 36 additions and 19 deletions

View File

@@ -3,13 +3,12 @@
ClassLogFile LogFile("/sdcard/log.txt");
void ClassLogFile::WriteToFile(std::string info, bool _time)
void ClassLogFile::WriteToDedicatedFile(std::string _fn, std::string info, bool _time)
{
FILE* pFile;
std::string zwtime;
pFile = fopen(logfile.c_str(), "a+");
pFile = fopen(_fn.c_str(), "a+");
if (_time)
{
@@ -31,11 +30,12 @@ void ClassLogFile::WriteToFile(std::string info, bool _time)
fclose(pFile);
}
void ClassLogFile::WriteToFile(std::string info, bool _time)
{
WriteToDedicatedFile(logfile, info, _time);
}
ClassLogFile::ClassLogFile(std::string _logfile)
{
logfile = _logfile;
}
ClassLogFile::~ClassLogFile()
{
}
}