добавление графиков дневного расхода

This commit is contained in:
Dmitry Borisenko
2022-09-28 17:55:35 +02:00
parent 7ac2e96c7b
commit 1625455594
17 changed files with 453 additions and 115 deletions

View File

@@ -214,9 +214,10 @@ String readDataDB(String id) {
void cleanLogs() {
SerialPrint("i", "Files", "cleanLogs");
cleanDirectory("/db");
//обращение к логированию из ядра
//очистка данных всех экземпляров графиков
for (std::list<IoTItem*>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
if ((*it)->getSubtype() == "Loging") {
if ((*it)->getSubtype() == "Loging" || "LogingDaily") {
(*it)->clearHistory();
}
}