From 4a1d0f7020a2ab35a59f458691f82d56d839430c Mon Sep 17 00:00:00 2001 From: JackyBlox <90517319+JackyBloxx@users.noreply.github.com> Date: Sat, 20 Jul 2024 08:26:09 +0200 Subject: [PATCH] Update crates/control/src/referee_pose_detection_filter.rs Co-authored-by: Julian Schuler <31921487+julianschuler@users.noreply.github.com> --- crates/control/src/referee_pose_detection_filter.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/control/src/referee_pose_detection_filter.rs b/crates/control/src/referee_pose_detection_filter.rs index 8566fd7047..db5ec572a6 100644 --- a/crates/control/src/referee_pose_detection_filter.rs +++ b/crates/control/src/referee_pose_detection_filter.rs @@ -87,8 +87,11 @@ impl RefereePoseDetectionFilter { self.update(&context)?; let is_standby = matches!( - context.game_controller_state.unwrap().game_state, - GameState::Standby + context.game_controller_state, + Some(GameControllerState { + game_state: GameState::Standby, + .. + }) ); if !is_standby { self.detection_times = Default::default();