Skip to content

Blacktip DPV: Fix Stuck Display Conditions. - #103

Open
mikeller wants to merge 2 commits into
vedderb:mainfrom
mikeller:fix_stuck_display
Open

Blacktip DPV: Fix Stuck Display Conditions.#103
mikeller wants to merge 2 commits into
vedderb:mainfrom
mikeller:fix_stuck_display

Conversation

@mikeller

Copy link
Copy Markdown
Contributor

Fix some conditions that can lead to a stuck display in 'off' state.

mikeller added 2 commits July 20, 2026 08:26
Fix some conditions that can lead to a stuck display in 'off' state.
Bump to 1.4.1 bugfix release.
Copilot AI review requested due to automatic review settings July 22, 2026 02:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a reliability issue in the Blacktip DPV display shutdown path by adding a defensive I2C sequence to ensure the panel cannot remain lit due to a transient dropped display-off transaction, and adds a regression test + release note for the behavior.

Changes:

  • Clear the Blacktip display framebuffer before issuing display-off, and retry the display-off command.
  • Adjust battery display loop state reset condition when the timer is cancelled.
  • Add a Python test that mirrors/verifies the new Blacktip display-timeout I2C command sequence, and document the change in the README (version bump + changelog entry).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
blacktip_dpv/blacktip_dpv.lisp Adds defensive Blacktip display shutdown sequence (blank + double off) and tweaks battery-display state reset logic.
blacktip_dpv/tests/run_tests.py Adds simulation + test coverage for the defensive display-timeout I2C sequence and wires it into the test runner.
blacktip_dpv/README.md Bumps version to 1.4.1 and documents the stuck-display bugfix in the changelog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread blacktip_dpv/README.md

Bugfix release:

- **Fix: Stuck display in 'off' state** — After the scooter shuts off the display, a transient I2C fault could silently drop the display-off command, leaving the last frame latched on the panel. Fixed by clearing the framebuffer first (so even a partially-delivered write leaves the panel blank) and by retrying the display-off command so that a single dropped transaction cannot keep the display lit indefinitely.
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.

2 participants