mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
Refactor(MLB): Prevent MLBLiveManager.update from directly calling display
This commit is contained in:
@@ -561,7 +561,7 @@ class MLBLiveManager(BaseMLBManager):
|
|||||||
|
|
||||||
# Always update display when we have new data, but limit to once per second
|
# Always update display when we have new data, but limit to once per second
|
||||||
if current_time - self.last_display_update >= 1.0:
|
if current_time - self.last_display_update >= 1.0:
|
||||||
self.display(force_clear=True)
|
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
||||||
self.last_display_update = current_time
|
self.last_display_update = current_time
|
||||||
else:
|
else:
|
||||||
# No live games found
|
# No live games found
|
||||||
@@ -574,7 +574,7 @@ class MLBLiveManager(BaseMLBManager):
|
|||||||
self.current_game = self.live_games[self.current_game_index]
|
self.current_game = self.live_games[self.current_game_index]
|
||||||
self.last_game_switch = current_time
|
self.last_game_switch = current_time
|
||||||
# Force display update when switching games
|
# Force display update when switching games
|
||||||
self.display(force_clear=True)
|
# self.display(force_clear=True) # REMOVED: DisplayController handles this
|
||||||
self.last_display_update = current_time
|
self.last_display_update = current_time
|
||||||
|
|
||||||
def _create_live_game_display(self, game_data: Dict[str, Any]) -> Image.Image:
|
def _create_live_game_display(self, game_data: Dict[str, Any]) -> Image.Image:
|
||||||
|
|||||||
Reference in New Issue
Block a user