merge bugfix
This commit is contained in:
commit
e92963e932
1 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,12 @@ boolean transition() {
|
||||||
Serial.print("OFF\n");
|
Serial.print("OFF\n");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (state_previous == STATE_HALF && state_current == STATE_ON) {
|
||||||
|
digitalWrite(LED_Y, LOW);
|
||||||
|
digitalWrite(LED_G, HIGH);
|
||||||
|
stateBegan = millis();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (state_previous == NULL && state_current == STATE_OFF) {
|
if (state_previous == NULL && state_current == STATE_OFF) {
|
||||||
digitalWrite(LED_G, LOW);
|
digitalWrite(LED_G, LOW);
|
||||||
digitalWrite(LED_Y, LOW);
|
digitalWrite(LED_Y, LOW);
|
||||||
|
|
Reference in a new issue