Skip to content

Commit

Permalink
Implement mixing state
Browse files Browse the repository at this point in the history
  • Loading branch information
acodili-jg committed May 11, 2024
1 parent 3c0ed80 commit 63df930
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ constants! {
HEATED_MIXING = DEFAULT;
HEATING = DEFAULT_LONG;
LOCKING = DEFAULT_SHORT;
MIXING = DEFAULT_LONG;
SEPARATOR_TRANSITION = DEFAULT;
SOAK_WATER_PUMPING = DEFAULT_LONG;
}
7 changes: 7 additions & 0 deletions src/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ impl Sketch {
self.heater.set_low();
}

State::SoakWaterMixing if delta_ms < duration::MIXING && !stop => {}
State::SoakWaterMixing => {
transition_to!(SoakWaterDraining);
self.mixer.set_low();
self.upper_drain_pump.set_high();
}

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

0 comments on commit 63df930

Please sign in to comment.