From 380ca46edd6b0cb532f59558d7dce572d9581391 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Wed, 30 Apr 2025 10:46:07 -0500 Subject: [PATCH] fix: Correct display method calls in controller run loop --- src/display_controller.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/display_controller.py b/src/display_controller.py index d6a0fd27..115a4447 100644 --- a/src/display_controller.py +++ b/src/display_controller.py @@ -412,23 +412,23 @@ class DisplayController: # Display current mode frame (only for non-live modes) try: if self.current_display_mode == 'clock' and self.clock: - self.clock.display() + self.clock.display_time(force_clear=self.force_clear) elif self.current_display_mode == 'weather_current' and self.weather: - self.weather.display_current() + self.weather.display_weather(force_clear=self.force_clear) elif self.current_display_mode == 'weather_hourly' and self.weather: - self.weather.display_hourly() + self.weather.display_hourly_forecast(force_clear=self.force_clear) elif self.current_display_mode == 'weather_daily' and self.weather: - self.weather.display_daily() + self.weather.display_daily_forecast(force_clear=self.force_clear) elif self.current_display_mode == 'stocks' and self.stocks: - self.stocks.display() + self.stocks.display_stocks(force_clear=self.force_clear) elif self.current_display_mode == 'stock_news' and self.news: - self.news.display() + self.news.display_news() elif self.current_display_mode == 'calendar' and self.calendar: - self.calendar.display() + self.calendar.display(force_clear=self.force_clear) elif self.current_display_mode == 'nhl_recent' and self.nhl_recent: self.nhl_recent.display(force_clear=self.force_clear) @@ -446,10 +446,10 @@ class DisplayController: self.mlb_upcoming.display(force_clear=self.force_clear) elif self.current_display_mode == 'youtube' and self.youtube: - self.youtube.display() + self.youtube.display(force_clear=self.force_clear) elif self.current_display_mode == 'text_display' and self.text_display: - self.text_display.display() + self.text_display.display(force_clear=self.force_clear) except Exception as e: logger.error(f"Error updating display for mode {self.current_display_mode}: {e}", exc_info=True)