mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
Оптимизируем работу с передачей строк через парамтеры функций
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user