mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
logging dynamic ticker display
This commit is contained in:
@@ -593,6 +593,11 @@ class OddsTickerManager:
|
|||||||
else:
|
else:
|
||||||
# Fallback to the configured duration if something is wrong
|
# Fallback to the configured duration if something is wrong
|
||||||
self.dynamic_display_duration = self.display_duration
|
self.dynamic_display_duration = self.display_duration
|
||||||
|
logger.warning(f"[OddsTickerManager] Using fallback display duration. ticker_image exists: {self.ticker_image is not None}, scroll_speed: {self.scroll_speed}, scroll_delay: {self.scroll_delay}")
|
||||||
|
if self.ticker_image:
|
||||||
|
logger.info(f"[OddsTickerManager] Ticker image width: {self.ticker_image.width}px")
|
||||||
|
else:
|
||||||
|
logger.warning("[OddsTickerManager] No ticker image available")
|
||||||
|
|
||||||
def get_dynamic_duration(self) -> float:
|
def get_dynamic_duration(self) -> float:
|
||||||
"""Return the calculated dynamic duration for the ticker to complete one full scroll."""
|
"""Return the calculated dynamic duration for the ticker to complete one full scroll."""
|
||||||
|
|||||||
Reference in New Issue
Block a user