Skip to content

feat: restore last profile after boot - #114

Merged
kawinie merged 2 commits into
mainfrom
feat/remember-last-profile
Jul 19, 2026
Merged

feat: restore last profile after boot#114
kawinie merged 2 commits into
mainfrom
feat/remember-last-profile

Conversation

@kawinie

@kawinie kawinie commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Restore the last-used PD profile including its voltage and current on boot. The setting autosaves with DEBOUNCE to preserves flash lifetime.

  • New "Restore profile" setting replacing the old "skip-picker".
  • EEPROM layout bumped v3 -> v4

Linked issues

Refs #112

Hardware tested

  • HW1_3

Breaking change / migration

  • User-visible behavior (UI, button mapping, menu)
  • EEPROM layout or calibration constants

Details: EEPROM layout bumps v3 to v4, so existing preferences reset to defaults once on the upgrade boot. New "Restore profile" menu item that, when on, restores the last profile and skips the picker.

Notes

@kawinie kawinie changed the title feat: remember last profile across boot feat: restore last profile on boot Jul 17, 2026
@kawinie
kawinie force-pushed the feat/remember-last-profile branch from 6aab1d8 to e953443 Compare July 17, 2026 18:44
@kawinie kawinie changed the title feat: restore last profile on boot feat: restore last profile after boot Jul 17, 2026
kawinie added 2 commits July 17, 2026 11:47
Restore the last profile including voltage and current if index and V/A
range are matched. If a charger swap changes that index, fall back to
the picker instead of restoring the wrong output. This option replaces
skip picker option.
@kawinie
kawinie force-pushed the feat/remember-last-profile branch from e953443 to b0cc3a7 Compare July 17, 2026 18:47
@centydev
centydev self-requested a review July 18, 2026 00:59
@kawinie
kawinie marked this pull request as ready for review July 19, 2026 05:26
@kawinie
kawinie merged commit 1b8dbef into main Jul 19, 2026
1 check passed
@kawinie
kawinie deleted the feat/remember-last-profile branch August 5, 2026 00:53
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