mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
Remove delay from stock ticker to match news ticker's smooth scrolling
This commit is contained in:
@@ -141,8 +141,8 @@ class DisplayController:
|
|||||||
self.weather.display_daily_forecast(force_clear=self.force_clear)
|
self.weather.display_daily_forecast(force_clear=self.force_clear)
|
||||||
time.sleep(self.update_interval)
|
time.sleep(self.update_interval)
|
||||||
elif self.current_display == 'stocks' and self.stocks:
|
elif self.current_display == 'stocks' and self.stocks:
|
||||||
|
# For stocks, we want to update as fast as possible without delay
|
||||||
self.stocks.display_stocks(force_clear=self.force_clear)
|
self.stocks.display_stocks(force_clear=self.force_clear)
|
||||||
time.sleep(self.update_interval)
|
|
||||||
elif self.current_display == 'stock_news' and self.news:
|
elif self.current_display == 'stock_news' and self.news:
|
||||||
# For news, we want to update as fast as possible without delay
|
# For news, we want to update as fast as possible without delay
|
||||||
self.news.display_news()
|
self.news.display_news()
|
||||||
|
|||||||
Reference in New Issue
Block a user