Skip to content

Commit

Permalink
Fix arendst#945 ('Set Level' should turn on the light)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown authored and Unknown committed Oct 1, 2017
1 parent 48faeaa commit ca0f82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonoff/xdrv_domoticz.ino
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ boolean domoticz_mqttData(char *topicBuf, uint16_t stopicBuf, char *dataBuf, uin
snprintf_P(stemp1, sizeof(stemp1), PSTR("%d"), i +1);
if (2 == nvalue) {
nvalue = domoticz["svalue1"];
if (sfl_flg && (sysCfg.led_dimmer[i] == nvalue)) {
if (sfl_flg && (sysCfg.led_dimmer[i] == nvalue) && ((power >> i) &1)) {
return 1;
}
snprintf_P(topicBuf, stopicBuf, PSTR("/" D_CMND_DIMMER "%s"), (Maxdevice > 1) ? stemp1 : "");
Expand Down

0 comments on commit ca0f82d

Please sign in to comment.