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
08d9755a
Commit
08d9755a
authored
Apr 18, 2021
by
Eric Duminil
Browse files
Small refactor
parent
082bc7a1
Pipeline
#2835
passed with stage
in 1 minute and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.h
View file @
08d9755a
...
...
@@ -39,5 +39,6 @@
void
keepServicesAlive
();
void
checkFlashButton
();
void
checkSerialInput
();
#endif
ampel-firmware/ampel-firmware.ino
View file @
08d9755a
...
...
@@ -145,9 +145,7 @@ void loop() {
// Short press for night mode, Long press for calibration.
checkFlashButton
();
while
(
Serial
.
available
()
>
0
)
{
sensor_console
::
processSerialInput
(
Serial
.
read
());
}
checkSerialInput
();
if
(
sensor
::
processData
())
{
#ifdef AMPEL_CSV
...
...
@@ -172,6 +170,12 @@ void loop() {
}
}
void
checkSerialInput
()
{
while
(
Serial
.
available
()
>
0
)
{
sensor_console
::
processSerialInput
(
Serial
.
read
());
}
}
/**
* Checks if flash button has been pressed:
* If not, do nothing.
...
...
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