Disable GroupTopic change of SwitchTopic

Disable GroupTopic change of SwitchTopic (#6467)
This commit is contained in:
Theo Arends 2019-09-23 17:30:37 +02:00
parent 075485e124
commit 58c1851f93
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ void CmndButtonTopic(void)
void CmndSwitchTopic(void)
{
if ((XdrvMailbox.data_len > 0) && (XdrvMailbox.data_len < sizeof(Settings.switch_topic))) {
if (!XdrvMailbox.grpflg && (XdrvMailbox.data_len > 0) && (XdrvMailbox.data_len < sizeof(Settings.switch_topic))) {
MakeValidMqtt(0, XdrvMailbox.data);
if (!strcmp(XdrvMailbox.data, mqtt_client)) { SetShortcutDefault(); }
switch (Shortcut()) {