diff --git a/gateway/include/devices.h b/gateway/include/devices.h index f7fd16d..0d58dec 100644 --- a/gateway/include/devices.h +++ b/gateway/include/devices.h @@ -36,8 +36,8 @@ struct EasyHomeSwitch : Switch { memcpy(&this->off[4], off, 4 * sizeof(unsigned long)); asDevice((new DeviceConfig{id, name})->withManufacturer("Intertek")->withModel("Easy Home")->withParent(gatewayDevice)); for (int i = 0; i < 8; i++) { - onSwitches.insert({ on[i], this }); - offSwitches.insert({ off[i], this }); + onSwitches.insert({ this->on[i], this }); + offSwitches.insert({ this->off[i], this }); } }