Skip to content

Commit

Permalink
Allow no DeviceName
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed May 17, 2020
1 parent d7f6c78 commit 90e8332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/support_command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ void CmndWifiConfig(void)
void CmndDevicename(void)
{
if (!XdrvMailbox.grpflg && (XdrvMailbox.data_len > 0)) {
SettingsUpdateText(SET_DEVICENAME, (SC_DEFAULT == Shortcut()) ? SettingsText(SET_FRIENDLYNAME1) : XdrvMailbox.data);
SettingsUpdateText(SET_DEVICENAME, ('"' == XdrvMailbox.data[0]) ? "" : (SC_DEFAULT == Shortcut()) ? SettingsText(SET_FRIENDLYNAME1) : XdrvMailbox.data);
}
ResponseCmndChar(SettingsText(SET_DEVICENAME));
}
Expand Down

0 comments on commit 90e8332

Please sign in to comment.