Skip to content

Commit a9f483b

Browse files
committed
Fixed behaviour in the falling phase
According to #2585 there was a "glith" in the falling phase because of a missing +2 in the first condition
1 parent b1a5038 commit a9f483b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/shared/examples/10.StarterKit/p03_LoveOMeter/p03_LoveOMeter.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void loop() {
6060

6161
// if the current temperature is lower than the baseline
6262
// turn off all LEDs
63-
if (temperature < baselineTemp) {
63+
if (temperature < baselineTemp + 2) {
6464
digitalWrite(2, LOW);
6565
digitalWrite(3, LOW);
6666
digitalWrite(4, LOW);

0 commit comments

Comments
 (0)