make use of defined group
This commit is contained in:
parent
a3a0dc4e9e
commit
c6c2b2c93c
@ -60,12 +60,12 @@ void loop() {
|
|||||||
void sendCommand(boolean on) {
|
void sendCommand(boolean on) {
|
||||||
if (on) {
|
if (on) {
|
||||||
#if RC_SWITCH
|
#if RC_SWITCH
|
||||||
mySwitch.switchOn((char*)"11111", 4);
|
mySwitch.switchOn(group, 4);
|
||||||
#endif
|
#endif
|
||||||
debug("switch on");
|
debug("switch on");
|
||||||
} else {
|
} else {
|
||||||
#if RC_SWITCH
|
#if RC_SWITCH
|
||||||
mySwitch.switchOff((char*)"11111", 4);
|
mySwitch.switchOff(group, 4);
|
||||||
#endif
|
#endif
|
||||||
debug("switch off");
|
debug("switch off");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user