Skip to content

feat(eink): improve logging for debugging display failures#202

Merged
iwismer merged 1 commit into
masterfrom
iwismer/eink-failure-logging
Apr 7, 2026
Merged

feat(eink): improve logging for debugging display failures#202
iwismer merged 1 commit into
masterfrom
iwismer/eink-failure-logging

Conversation

@iwismer

@iwismer iwismer commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

Adds detailed, structured logging throughout the e-ink display stack to make it easier to diagnose hardware initialization and refresh failures on the SBC.

  • driver.rs: Step-by-step info!/debug! logging during init (SPI, GPIO, EPD) with warn! and actionable hints at each failure point (e.g., "is SPI enabled?", "check wiring")
  • task.rs: Logs full eink config on startup, includes state context (total_reads, reader count, partial_count, refresh_count) in refresh logs
  • main.rs: Logs eink config when display is enabled, tracks consecutive errors in draw closure, logs recovery after errors clear

Add step-by-step init logging with actionable hints in the driver,
structured fields and config details in the task loop, and consecutive
error tracking in the forwarder draw closure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@iwismer iwismer merged commit 3f3cc2e into master Apr 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant