Skip to content

Commit ce4e707

Browse files
committed
optim: use tuple instead of dict
1 parent b267d3d commit ce4e707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telemffb/telem/SimConnectManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def _read_telem(self) -> bool:
492492
avatar = data.get("_IS AVATAR", False) # in 2024, see if user is controlling avatar
493493
rtc = data.get("_IS IN RTC", False) # check if 2024 sim is running realtime cinematic (cut scene)
494494

495-
in_menus = data.get('CameraState', 0) not in {2,3,4,5} # Check the camera state value - workaround for FS2024 telemetry at wrong times https://forums.flightsimulator.com/t/at-the-finish-of-beta-loading-if-start-is-not-click-open-upon-reaching-yosemite-during-2nd-run-of-opening-graphics-telemetry-is-sent-to-motion-platform-causiing-violent-shaking-and-movement/702082/2?u=number4815901
495+
in_menus = data.get('CameraState', 0) not in (2,3,4,5) # Check the camera state value - workaround for FS2024 telemetry at wrong times https://forums.flightsimulator.com/t/at-the-finish-of-beta-loading-if-start-is-not-click-open-upon-reaching-yosemite-during-2nd-run-of-opening-graphics-telemetry-is-sent-to-motion-platform-causiing-violent-shaking-and-movement/702082/2?u=number4815901
496496

497497
if self._sim_paused or data.get("Parked", 0) or data.get("Slew", 0) or avatar or rtc or in_menus:
498498
data["STOP"] = 1

0 commit comments

Comments
 (0)