From 9e80dd50e9f1f2579d23a166edcd16d92192fcc7 Mon Sep 17 00:00:00 2001 From: "Jack Gabriel C. Acodili" <112671361+acodili-jg@users.noreply.github.com> Date: Mon, 13 May 2024 19:10:51 +0800 Subject: [PATCH] Implement pulp draining state --- src/sketch.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sketch.rs b/src/sketch.rs index 5e1c48c..648403d 100644 --- a/src/sketch.rs +++ b/src/sketch.rs @@ -303,6 +303,14 @@ impl Sketch { self.lower_drain_pump.set_high(); } + State::PulpDraining if delta_ms < duration::DRAINING => {} + State::PulpDraining => { + transition_to!(SetupSeparatorOpening); + self.lower_drain_pump.set_low(); + self.separator_hatch_direction.set_low(); + self.separator_hatch_enable.set_high(); + } + _ => { /* TODO */ } } }