Оптимизируем работу с передачей строк через парамтеры функций

This commit is contained in:
2022-10-28 22:19:18 +03:00
parent a292f17285
commit 7dc21ee914
12 changed files with 54 additions and 59 deletions

View File

@@ -68,7 +68,7 @@ class ButtonIn : public IoTItem {
_lastButtonState = _reading;
}
void setValue(IoTValue Value, bool generateEvent = true) {
void setValue(const IoTValue& Value, bool generateEvent = true) {
value = Value;
if (generateEvent) regEvent((String)(int)value.valD, "ButtonIn");
}