mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Fixed behaviour in the falling phase PJ03 StarterKit
According to #2585 there was a "glitch" in the falling phase because of a missing +2 in the first condition
This commit is contained in:
@ -60,7 +60,7 @@ void loop() {
|
|||||||
|
|
||||||
// if the current temperature is lower than the baseline
|
// if the current temperature is lower than the baseline
|
||||||
// turn off all LEDs
|
// turn off all LEDs
|
||||||
if (temperature < baselineTemp) {
|
if (temperature < baselineTemp + 2) {
|
||||||
digitalWrite(2, LOW);
|
digitalWrite(2, LOW);
|
||||||
digitalWrite(3, LOW);
|
digitalWrite(3, LOW);
|
||||||
digitalWrite(4, LOW);
|
digitalWrite(4, LOW);
|
||||||
|
Reference in New Issue
Block a user