Skip to content

Commit d2f83c1

Browse files
authored
CPU load hotfix
1 parent de36169 commit d2f83c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glass_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def simconnect_thread_func3(threadname):
549549
def thousandify(x):
550550
return f"{x:,}"
551551

552-
while True:
552+
while False:
553553
# PA-28R L-Vars
554554
if selected_plane[:6] == "PA-28R":
555555
ui_friendly_dictionary["JF_PA_28R_AP_HDG"] = vr.get("(L:AUTOPILOT_hdg)")
@@ -586,6 +586,7 @@ def thousandify(x):
586586
ui_friendly_dictionary["MILVIZ_CORSAIR_BNC_LIGHTS"] = vr.get("(L:FG1D110)")
587587
ui_friendly_dictionary["MILVIZ_CORSAIR_RECOGN_LIGHTS"] = vr.get("(L:FG1D111)")
588588
ui_friendly_dictionary["MILVIZ_CORSAIR_LANDING_LIGHTS"] = vr.get("(L:FG1D196)")
589+
sleep(0.25)
589590

590591

591592
if __name__ == "__main__":

0 commit comments

Comments
 (0)