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
4ea6dfa2
Commit
4ea6dfa2
authored
May 17, 2021
by
Eric Duminil
Browse files
Default values
parent
28b9a578
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
4ea6dfa2
...
...
@@ -165,6 +165,7 @@ void loop() {
if
(
sensor
::
processData
())
{
#ifdef AMPEL_CSV
//TODO: Check if not in AP mode. Lines get written with 1970 otherwise.
csv_writer
::
logIfTimeHasCome
(
sensor
::
timestamp
,
sensor
::
co2
,
sensor
::
temperature
,
sensor
::
humidity
);
#endif
...
...
ampel-firmware/web_config.cpp
View file @
4ea6dfa2
...
...
@@ -45,7 +45,7 @@ namespace web_config {
2
).
max
(
1800
).
placeholder
(
"[s]"
).
build
();
FloatTParameter
temperatureOffsetParam
=
Builder
<
FloatTParameter
>
(
"temp_offset"
).
label
(
"Temperature offset"
).
defaultValue
(
TEMPERATURE_OFFSET
).
placeholder
(
Builder
<
FloatTParameter
>
(
"temp_offset"
).
label
(
"Temperature offset"
).
defaultValue
(
TEMPERATURE_OFFSET
).
placeholder
(
"[K]"
).
step
(
0.1
).
build
();
IntTParameter
<
uint16_t
>
altitudeParam
=
Builder
<
IntTParameter
<
uint16_t
>>
(
"altitude"
).
label
(
"Altitude"
).
defaultValue
(
...
...
@@ -56,7 +56,7 @@ namespace web_config {
ATMOSPHERIC_CO2_CONCENTRATION
).
min
(
400
).
max
(
2000
).
step
(
1
).
placeholder
(
"ppm"
).
build
();
CheckboxTParameter
autoCalibrateParam
=
Builder
<
CheckboxTParameter
>
(
"asc"
).
label
(
"Auto-calibration"
).
defaultValue
(
true
).
build
();
AUTO_CALIBRATE_SENSOR
).
build
();
/**
* LED
...
...
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