Restart coffee making while slowing down
This commit is contained in:
parent
2a785dd71d
commit
01274b2bba
@ -85,7 +85,12 @@ void loop() {
|
||||
}
|
||||
break;
|
||||
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) {
|
||||
eegLedDelayTimeout = millis();
|
||||
if(eegLedDelay > maxEegLedDelay) {
|
||||
|
Loading…
Reference in New Issue
Block a user