remove redundant clear_display

This commit is contained in:
Chuck
2025-07-22 21:26:00 -05:00
parent 41d703d825
commit f27e4ef892

View File

@@ -170,9 +170,6 @@ class OfTheDayManager:
logger.debug(f"Drawing title '{title}' at position ({title_x}, 2) with width {title_width}") logger.debug(f"Drawing title '{title}' at position ({title_x}, 2) with width {title_width}")
self._last_title_debug_log = current_time self._last_title_debug_log = current_time
# Test: Draw a simple red rectangle to verify drawing is working
self.display_manager.draw.rectangle([0, 0, 10, 10], fill=(255, 0, 0))
self.display_manager.draw_text(title, title_x, 2, self.display_manager.draw_text(title, title_x, 2,
color=self.title_color, color=self.title_color,
font=self.display_manager.extra_small_font) font=self.display_manager.extra_small_font)
@@ -308,8 +305,9 @@ class OfTheDayManager:
logger.info(f"Displaying {current_category}: {title}") logger.info(f"Displaying {current_category}: {title}")
self.last_display_log = current_time self.last_display_log = current_time
# Clear the display before drawing # Only clear if force_clear is True (following calendar_manager pattern)
logger.debug("Calling display_manager.clear()") if force_clear:
logger.debug("Calling display_manager.clear() due to force_clear")
self.display_manager.clear() self.display_manager.clear()
logger.debug("display_manager.clear() completed") logger.debug("display_manager.clear() completed")