diff --git a/ampel-firmware/web_config.cpp b/ampel-firmware/web_config.cpp index e3a0a49104fbedd758a132c6387fc490c875c74d..744cb0d8c9f3bf399d882b108a0d2fcfd465effc 100644 --- a/ampel-firmware/web_config.cpp +++ b/ampel-firmware/web_config.cpp @@ -167,7 +167,8 @@ namespace web_config { } void initialize() { - iotWebConf = new IotWebConf(ampel.sensorId, &dnsServer, &http, "", config_version); + iotWebConf = new IotWebConf(strlen(AMPEL_NAME) == 0 ? ampel.sensorId : AMPEL_NAME, &dnsServer, &http, "", + config_version); iotWebConf->setHtmlFormatProvider(&optionalGroupHtmlFormatProvider);