mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
Fix(NHL): Remove undefined data_changed check in live manager update
This commit is contained in:
@@ -640,7 +640,7 @@ class NHLLiveManager(BaseNHLManager):
|
|||||||
self.last_game_switch = current_time
|
self.last_game_switch = current_time
|
||||||
|
|
||||||
# Update display if data changed, limit rate
|
# Update display if data changed, limit rate
|
||||||
if data_changed and current_time - self.last_display_update >= 1.0:
|
if current_time - self.last_display_update >= 1.0:
|
||||||
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
||||||
self.last_display_update = current_time
|
self.last_display_update = current_time
|
||||||
|
|
||||||
@@ -657,11 +657,6 @@ class NHLLiveManager(BaseNHLManager):
|
|||||||
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
||||||
self.last_display_update = current_time # Track time for potential display update
|
self.last_display_update = current_time # Track time for potential display update
|
||||||
|
|
||||||
# If data changed for the *current* game, consider updating display (rate limited)
|
|
||||||
elif data_changed and current_time - self.last_display_update >= 1.0:
|
|
||||||
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
|
||||||
self.last_display_update = current_time
|
|
||||||
|
|
||||||
def display(self, force_clear: bool = False):
|
def display(self, force_clear: bool = False):
|
||||||
"""Display live game information."""
|
"""Display live game information."""
|
||||||
if not self.current_game:
|
if not self.current_game:
|
||||||
|
|||||||
Reference in New Issue
Block a user