mirror of https://github.com/arendst/Tasmota.git
Disable GroupTopic change of SwitchTopic
Disable GroupTopic change of SwitchTopic (#6467)
This commit is contained in:
parent
075485e124
commit
58c1851f93
|
@ -876,7 +876,7 @@ void CmndButtonTopic(void)
|
||||||
|
|
||||||
void CmndSwitchTopic(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);
|
MakeValidMqtt(0, XdrvMailbox.data);
|
||||||
if (!strcmp(XdrvMailbox.data, mqtt_client)) { SetShortcutDefault(); }
|
if (!strcmp(XdrvMailbox.data, mqtt_client)) { SetShortcutDefault(); }
|
||||||
switch (Shortcut()) {
|
switch (Shortcut()) {
|
||||||
|
|
Loading…
Reference in New Issue