From dc72399dca1c6a27cae7895dd0454a65f424f26e Mon Sep 17 00:00:00 2001 From: Eric Duminil Date: Tue, 15 Feb 2022 15:56:04 +0100 Subject: [PATCH] Can specify ampel name with AMPEL_NAME --- ampel-firmware/web_config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ampel-firmware/web_config.cpp b/ampel-firmware/web_config.cpp index e3a0a49..744cb0d 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); -- GitLab