Restart coffee making while slowing down
This commit is contained in:
parent
2a785dd71d
commit
01274b2bba
@ -85,7 +85,12 @@ void loop() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case State::Slowing:
|
case State::Slowing:
|
||||||
Serial.println(eegLedDelay);
|
if(event == ButtonEvent::Press || event == ButtonEvent::LongPress) {
|
||||||
|
tmrpcm.play("coffee.wav");
|
||||||
|
state = State::MakingCoffee;
|
||||||
|
coffeeLedTimeout = millis();
|
||||||
|
}
|
||||||
|
|
||||||
if((uint16_t) millis() - eegLedDelayTimeout >= 300) {
|
if((uint16_t) millis() - eegLedDelayTimeout >= 300) {
|
||||||
eegLedDelayTimeout = millis();
|
eegLedDelayTimeout = millis();
|
||||||
if(eegLedDelay > maxEegLedDelay) {
|
if(eegLedDelay > maxEegLedDelay) {
|
||||||
|
Loading…
Reference in New Issue
Block a user