Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Default values
parent
28b9a578
master
develop
experimental/example_for_iotwebconf
senseair_s8
v0.3.0
archive/experimental/save_lora_session
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ampel-firmware/ampel-firmware.ino
+1
-0
ampel-firmware/ampel-firmware.ino
ampel-firmware/web_config.cpp
+2
-2
ampel-firmware/web_config.cpp
with
3 additions
and
2 deletions
+3
-2
ampel-firmware/ampel-firmware.ino
+
1
-
0
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
...
...
This diff is collapsed.
Click to expand it.
ampel-firmware/web_config.cpp
+
2
-
2
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
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets