From 2c75d0fae85f802d24ba226c5043c1c92f8de36a Mon Sep 17 00:00:00 2001 From: Nicolae Hodos Date: Sun, 29 Jan 2017 12:04:35 +0100 Subject: [PATCH] make use of defined group --- lamp_switch/lamp_switch.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lamp_switch/lamp_switch.ino b/lamp_switch/lamp_switch.ino index c5db493..7093363 100644 --- a/lamp_switch/lamp_switch.ino +++ b/lamp_switch/lamp_switch.ino @@ -60,12 +60,12 @@ void loop() { void sendCommand(boolean on) { if (on) { #if RC_SWITCH - mySwitch.switchOn((char*)"11111", 4); + mySwitch.switchOn(group, 4); #endif debug("switch on"); } else { #if RC_SWITCH - mySwitch.switchOff((char*)"11111", 4); + mySwitch.switchOff(group, 4); #endif debug("switch off"); }