mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
Fix MLBUpcomingManager display method: Update display manager correctly without passing arguments
This commit is contained in:
@@ -610,8 +610,9 @@ class MLBUpcomingManager(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)
|
self.display_manager.image = game_image
|
||||||
self.display_manager.update_display(image_array)
|
self.display_manager.draw = ImageDraw.Draw(self.display_manager.image)
|
||||||
|
self.display_manager.update_display()
|
||||||
|
|
||||||
# Move to next game
|
# Move to next game
|
||||||
self.current_game_index = (self.current_game_index + 1) % len(self.upcoming_games)
|
self.current_game_index = (self.current_game_index + 1) % len(self.upcoming_games)
|
||||||
|
|||||||
Reference in New Issue
Block a user