diff --git a/src/tasks/ui.rs b/src/tasks/ui.rs index 05af8b6..8c94698 100644 --- a/src/tasks/ui.rs +++ b/src/tasks/ui.rs @@ -128,12 +128,9 @@ impl match personality { - Personality::Active => self.apply_scene(Scene::Ready).await, - Personality::Parked => self.apply_scene(Scene::Idle).await, - Personality::Waking => self.show().await, - _ => () - }, + Prediction::SetPersonality(Personality::Active) => self.apply_scene(Scene::Ready).await, + Prediction::SetPersonality(Personality::Parked) => self.apply_scene(Scene::Idle).await, + Prediction::SetPersonality(Personality::Waking) => self.show().await, Prediction::Motion { prev: _, next: MotionState::Accelerating } => self.apply_scene(Scene::Accelerating).await, Prediction::Motion { prev: _, next: MotionState::Decelerating } => self.apply_scene(Scene::Decelerating).await, Prediction::Motion { prev: _, next: MotionState::Steady } => self.apply_scene(Scene::Ready).await,