Call XdrvCall even for power. Fix devgrp index mask in xdrv_04_light

This commit is contained in:
Paul C Diem 2020-04-04 10:27:40 -05:00
parent c066b0c8e2
commit cca5b8e35b
2 changed files with 2 additions and 4 deletions

View File

@ -601,9 +601,7 @@ void ProcessDeviceGroupMessage(char * packet, int packet_length)
}
}
}
else {
XdrvCall(FUNC_DEVICE_GROUP_ITEM);
}
XdrvCall(FUNC_DEVICE_GROUP_ITEM);
}
}

View File

@ -2115,7 +2115,7 @@ void LightHandleDeviceGroupItem()
bool more_to_come;
uint32_t value = XdrvMailbox.payload;
#ifdef USE_PWM_DIMMER_REMOTE
if (XdrvMailbox.index & 0xff00) return; // Ignore updates from other device groups
if (XdrvMailbox.index & 0xff0000) return; // Ignore updates from other device groups
#endif // USE_PWM_DIMMER_REMOTE
switch (XdrvMailbox.command_code) {
case DGR_ITEM_EOL: