From d26ce074d819ae4bbd245d91e1db28393ae50031 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 13 Mar 2020 12:50:27 +0100 Subject: [PATCH] Fix command FriendlyName when no index is given Fix command FriendlyName newname when no index is given --- tasmota/support_command.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index 43db86430..2becd43e1 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -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) {