From 7c87ada8d80b72fb2c01d19c21722d63edccfd54 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 1 Aug 2025 23:55:16 -0700 Subject: [PATCH] Simplify `radarFault` handling (#35891) * Revert "Fix up `radarFault` handling (#35880)" This reverts commit 4d01b7bec840fefffc20e220c5f4a6dfe4b2d7ea. * Reapply "Fix up `radarFault` handling (#35880)" This reverts commit 597d7ec1ed78206035b924a6e8464cd9239b5db4. * can do this * yeah this is fine --- selfdrive/selfdrived/selfdrived.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/selfdrived/selfdrived.py b/selfdrive/selfdrived/selfdrived.py index ce03b44571..94ba1b84b2 100755 --- a/selfdrive/selfdrived/selfdrived.py +++ b/selfdrive/selfdrived/selfdrived.py @@ -316,7 +316,7 @@ class SelfdriveD: self.events.add(EventName.canError) elif self.sm['radarState'].radarErrors.radarUnavailableTemporary: self.events.add(EventName.radarTempUnavailable) - elif any(getattr(self.sm['radarState'].radarErrors, f) for f in self.sm['radarState'].radarErrors.schema.fields): + elif any(self.sm['radarState'].radarErrors.to_dict().values()): self.events.add(EventName.radarFault) if not self.sm.valid['pandaStates']: self.events.add(EventName.usbError)