Skip to content

Commit

Permalink
Implement rinsing state
Browse files Browse the repository at this point in the history
  • Loading branch information
acodili-jg committed May 11, 2024
1 parent edbeaf4 commit afd5583
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ constants! {
HEATING = DEFAULT_LONG;
LOCKING = DEFAULT_SHORT;
MIXING = DEFAULT_LONG;
RINSING = DEFAULT_LONG;
SEPARATOR_TRANSITION = DEFAULT;
SOAK_WATER_PUMPING = DEFAULT_LONG;
}
7 changes: 6 additions & 1 deletion src/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,15 @@ impl Sketch {
}
State::SoakWaterDraining => {
transition_to!(RinseWaterPumping);
self.upper_drain_pump.set_low();
self.water_pump.set_high();
}

State::RinseWaterPumping if delta_ms < duration::RINSING => {}
State::RinseWaterPumping => {
transition_to!(RinseWaterDraining);
self.water_pump.set_low();
}

_ => { /* TODO */ }
}
}
Expand Down

0 comments on commit afd5583

Please sign in to comment.