mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
Fix MLB display method to properly update display manager
This commit is contained in:
@@ -410,8 +410,11 @@ class MLBLiveManager(BaseMLBManager):
|
|||||||
try:
|
try:
|
||||||
# Create and display the game image
|
# Create and display the game image
|
||||||
game_image = self._create_game_display(self.current_game)
|
game_image = self._create_game_display(self.current_game)
|
||||||
image_array = np.array(game_image)
|
# Set the image in the display manager
|
||||||
self.display_manager.update_display(image_array)
|
self.display_manager.image = game_image
|
||||||
|
self.display_manager.draw = ImageDraw.Draw(self.display_manager.image)
|
||||||
|
# Update the display
|
||||||
|
self.display_manager.update_display()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"[MLB] Error displaying live game: {e}", exc_info=True)
|
logger.error(f"[MLB] Error displaying live game: {e}", exc_info=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user