From 18450a68838be2ac9af44db98d7d870de4bd7c10 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sat, 4 May 2024 16:17:43 +0200 Subject: [PATCH] fix on/off map insertion --- gateway/include/devices.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }); } }