make use of defined group

This commit is contained in:
Nicolae Hodos 2017-01-29 12:04:35 +01:00
parent 01cd4ae743
commit 2c75d0fae8

View File

@ -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");
}