add device name var dvnm

This commit is contained in:
gemu2015 2021-01-08 11:51:14 +01:00
parent b7eab415ff
commit e9998f0ce0
1 changed files with 5 additions and 0 deletions

View File

@ -1913,6 +1913,10 @@ chknext:
fvar = RtcTime.day_of_month;
goto exit;
}
if (!strncmp(vname, "dvnm", 4)) {
if (sp) strlcpy(sp, SettingsText(SET_DEVICENAME), glob_script_mem.max_ssize);
goto strexit;
}
break;
case 'e':
if (!strncmp(vname, "epoch", 5)) {
@ -2367,6 +2371,7 @@ chknext:
goto strexit;
}
break;
case 'g':
if (!strncmp(vname, "gtmp", 4)) {
fvar = TasmotaGlobal.temperature_celsius;