mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Allow no DeviceName
This commit is contained in:
parent
d7f6c78ed9
commit
90e833238f
@ -1491,7 +1491,7 @@ void CmndWifiConfig(void)
|
|||||||
void CmndDevicename(void)
|
void CmndDevicename(void)
|
||||||
{
|
{
|
||||||
if (!XdrvMailbox.grpflg && (XdrvMailbox.data_len > 0)) {
|
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));
|
ResponseCmndChar(SettingsText(SET_DEVICENAME));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user