Ensure only enabled birdseye cameras are considered active (#13194)

* Ensure only enabled birdseye cameras are considered active

* Cleanup
This commit is contained in:
Nicolas Mowen 2024-08-19 15:01:48 -06:00 committed by GitHub
parent 1da934e63c
commit d96f76c27f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,7 +395,8 @@ class BirdsEyeFrameManager:
[ [
cam cam
for cam, cam_data in self.cameras.items() for cam, cam_data in self.cameras.items()
if cam_data["last_active_frame"] > 0 if self.config.cameras[cam].birdseye.enabled
and cam_data["last_active_frame"] > 0
and cam_data["current_frame"] - cam_data["last_active_frame"] and cam_data["current_frame"] - cam_data["last_active_frame"]
< self.inactivity_threshold < self.inactivity_threshold
] ]