Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
1bc03c7c
Commit
1bc03c7c
authored
Apr 29, 2021
by
Käppler
Browse files
Remove unneccessary `if` condition
parent
7872da54
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
1bc03c7c
...
...
@@ -135,9 +135,7 @@ namespace sensor {
last_co2
=
co2
;
// We assume the sensor has acclimated to the environment if measurements
// change less than a specified percentage of the current value.
if
(
co2
>
0
&&
(
100
*
delta
/
config
::
max_deviation_during_accl
)
<
co2
)
{
return
true
;
}
else
return
false
;
return
(
co2
>
0
&&
(
100
*
delta
/
config
::
max_deviation_during_accl
)
<
co2
);
}
bool
countStableMeasurements
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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