From 180f8390492b515b3068443cbb5ee348975e0f03 Mon Sep 17 00:00:00 2001 From: "Jack Gabriel C. Acodili" <112671361+acodili-jg@users.noreply.github.com> Date: Mon, 13 May 2024 18:53:56 +0800 Subject: [PATCH] Implement separator closing state --- src/sketch.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sketch.rs b/src/sketch.rs index a9b2f23..0b4b1d3 100644 --- a/src/sketch.rs +++ b/src/sketch.rs @@ -288,6 +288,13 @@ impl Sketch { self.separator_hatch_enable.set_high(); } + State::SeparatorClosing if delta_ms < duration::SEPARATOR_TRANSITION => {} + State::SeparatorClosing => { + transition_to!(Blending); + self.separator_hatch_enable.set_low(); + self.blender.set_high(); + } + _ => { /* TODO */ } } }