working version with optimization

This commit is contained in:
Dmitry Borisenko
2020-09-03 02:07:12 +03:00
parent 89fed305c8
commit ab65cda820
17 changed files with 79 additions and 81 deletions

View File

@@ -3,18 +3,17 @@
//===============================================Модуль вывода текста============================================
//output-text;id;anydata;Вывод;Сигнализация;order;st[Обнаружено.движение]
//===============================================================================================================
OutputTextClass* myOutputText;
OutputTextClass myOutputText;
void textOut() {
myOutputText = new OutputTextClass();
myOutputText->update();
String key = myOutputText->gkey();
myOutputText.update();
String key = myOutputText.gkey();
sCmd.addCommand(key.c_str(), textOutSet);
myOutputText->OutputModuleStateSetDefault();
myOutputText->clear();
myOutputText.OutputModuleStateSetDefault();
myOutputText.clear();
}
void textOutSet() {
String key = sCmd.order();
String state = sCmd.next();
myOutputText->OutputModuleChange(key, state);
myOutputText.OutputModuleChange(key, state);
}