mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
fix(controller): Remove force_clear arg from display_news call
This commit is contained in:
@@ -125,7 +125,7 @@ class DisplayController:
|
|||||||
self.nhl.display(force_clear=self.force_clear)
|
self.nhl.display(force_clear=self.force_clear)
|
||||||
|
|
||||||
elif self.current_display_mode == 'stock_news' and self.news:
|
elif self.current_display_mode == 'stock_news' and self.news:
|
||||||
self.news.display_news(force_clear=self.force_clear) # Assuming news has force_clear
|
self.news.display_news() # Removed force_clear argument
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error updating display for mode {self.current_display_mode}: {e}", exc_info=True)
|
logger.error(f"Error updating display for mode {self.current_display_mode}: {e}", exc_info=True)
|
||||||
@@ -136,8 +136,8 @@ class DisplayController:
|
|||||||
# Reset force clear flag after the first successful display in a mode
|
# Reset force clear flag after the first successful display in a mode
|
||||||
self.force_clear = False
|
self.force_clear = False
|
||||||
|
|
||||||
# Main loop delay
|
# Main loop delay - REMOVED for faster processing/scrolling
|
||||||
time.sleep(self.update_interval)
|
# time.sleep(self.update_interval)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("\nDisplay stopped by user")
|
print("\nDisplay stopped by user")
|
||||||
|
|||||||
Reference in New Issue
Block a user