Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
dc72399d
Commit
dc72399d
authored
Feb 15, 2022
by
Eric Duminil
Browse files
Can specify ampel name with AMPEL_NAME
parent
99b75faa
Pipeline
#5837
passed with stage
in 2 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
dc72399d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment