mirror of https://github.com/arendst/Tasmota.git
Fix command FriendlyName when no index is given
Fix command FriendlyName newname when no index is given
This commit is contained in:
parent
ce8e68d118
commit
d26ce074d8
|
@ -1342,7 +1342,7 @@ void CmndWifiConfig(void)
|
|||
void CmndFriendlyname(void)
|
||||
{
|
||||
if ((XdrvMailbox.index > 0) && (XdrvMailbox.index <= MAX_FRIENDLYNAMES)) {
|
||||
if (!XdrvMailbox.usridx) {
|
||||
if (!XdrvMailbox.usridx && !XdrvMailbox.data_len) {
|
||||
ResponseCmndAll(SET_FRIENDLYNAME1, MAX_FRIENDLYNAMES);
|
||||
} else {
|
||||
if (XdrvMailbox.data_len > 0) {
|
||||
|
|
Loading…
Reference in New Issue